Skip to content

Commit

Permalink
chore: Bump typescript, jest, yarn, misc. (stephenh#843)
Browse files Browse the repository at this point in the history
* chore: Bump typescript, jest, yarn, misc.

* Use deterministic ids.
  • Loading branch information
stephenh authored Jun 4, 2023
1 parent 5a22d94 commit f91d0dc
Show file tree
Hide file tree
Showing 32 changed files with 7,550 additions and 7,655 deletions.
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

807 changes: 0 additions & 807 deletions .yarn/releases/yarn-3.3.0.cjs

This file was deleted.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.0.cjs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

supportedArchitectures:
cpu:
Expand All @@ -16,4 +18,4 @@ supportedArchitectures:
- current
- linux

yarnPath: .yarn/releases/yarn-3.3.0.cjs
yarnPath: .yarn/releases/yarn-3.6.0.cjs
34 changes: 17 additions & 17 deletions integration/fieldmask/fieldmask-test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { FieldMaskMessage } from './fieldmask';
import { FieldMaskMessage } from "./fieldmask";

let data = {
fieldMask: 'a,b,c.d',
fieldMask: "a,b,c.d",
};

describe('fieldmask', () => {
it('can decode canonical JSON', () => {
describe("fieldmask", () => {
it("can decode canonical JSON", () => {
const f = FieldMaskMessage.fromJSON(data);
expect(f).toMatchInlineSnapshot(`
Object {
"fieldMask": Array [
{
"fieldMask": [
"a",
"b",
"c.d",
Expand All @@ -18,15 +18,15 @@ describe('fieldmask', () => {
`);
});

it('can decode non-canonical JSON', () => {
it("can decode non-canonical JSON", () => {
const f = FieldMaskMessage.fromJSON({
fieldMask: {
paths: ['a', 'b', 'c.d'],
}
paths: ["a", "b", "c.d"],
},
});
expect(f).toMatchInlineSnapshot(`
Object {
"fieldMask": Array [
{
"fieldMask": [
"a",
"b",
"c.d",
Expand All @@ -35,16 +35,16 @@ describe('fieldmask', () => {
`);
});

it('can encode JSON', () => {
const f = FieldMaskMessage.toJSON({ fieldMask: ['a', 'b', 'c.d'] });
it("can encode JSON", () => {
const f = FieldMaskMessage.toJSON({ fieldMask: ["a", "b", "c.d"] });
expect(f).toEqual(data);
});

it('skips empty paths', () => {
const f = FieldMaskMessage.fromJSON({fieldMask: 'a,,c.d'});
it("skips empty paths", () => {
const f = FieldMaskMessage.fromJSON({ fieldMask: "a,,c.d" });
expect(f).toMatchInlineSnapshot(`
Object {
"fieldMask": Array [
{
"fieldMask": [
"a",
"c.d",
],
Expand Down
Loading

0 comments on commit f91d0dc

Please sign in to comment.