@tldraw/store 3.16.0-internal.a478398270c6 → 3.16.0-next.15f085081fd5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,18 +34,18 @@ describe(sortMigrations, () => {
34
34
  it('should fail if a cycle is created', () => {
35
35
  expect(() => {
36
36
  sort([m('foo/1', { dependsOn: ['foo/1'] })])
37
- }).toThrowErrorMatchingInlineSnapshot(`"Circular dependency in migrations: foo/1"`)
37
+ }).toThrowErrorMatchingInlineSnapshot(`[Error: Circular dependency in migrations: foo/1]`)
38
38
 
39
39
  expect(() => {
40
40
  sort([m('foo/1', { dependsOn: ['foo/2'] }), m('foo/2')])
41
- }).toThrowErrorMatchingInlineSnapshot(`"Circular dependency in migrations: foo/1"`)
41
+ }).toThrowErrorMatchingInlineSnapshot(`[Error: Circular dependency in migrations: foo/1]`)
42
42
 
43
43
  expect(() => {
44
44
  sort([m('foo/1', { dependsOn: ['bar/1'] }), m('bar/1', { dependsOn: ['foo/1'] })])
45
- }).toThrowErrorMatchingInlineSnapshot(`"Circular dependency in migrations: foo/1"`)
45
+ }).toThrowErrorMatchingInlineSnapshot(`[Error: Circular dependency in migrations: foo/1]`)
46
46
 
47
47
  expect(() => {
48
48
  sort([m('bar/1', { dependsOn: ['foo/1'] }), m('foo/1', { dependsOn: ['bar/1'] })])
49
- }).toThrowErrorMatchingInlineSnapshot(`"Circular dependency in migrations: bar/1"`)
49
+ }).toThrowErrorMatchingInlineSnapshot(`[Error: Circular dependency in migrations: bar/1]`)
50
50
  })
51
51
  })
@@ -18,7 +18,7 @@ describe(validateMigrations, () => {
18
18
  sequenceId: 'foo',
19
19
  })
20
20
  ).toThrowErrorMatchingInlineSnapshot(
21
- `"Every migration in sequence 'foo' must have an id starting with 'foo/'. Got invalid id: 'foo.1'"`
21
+ `[Error: Every migration in sequence 'foo' must have an id starting with 'foo/'. Got invalid id: 'foo.1']`
22
22
  )
23
23
 
24
24
  expect(() =>
@@ -36,7 +36,7 @@ describe(validateMigrations, () => {
36
36
 
37
37
  sequenceId: 'foo',
38
38
  })
39
- ).toThrowErrorMatchingInlineSnapshot(`"Invalid migration id: 'foo/one'"`)
39
+ ).toThrowErrorMatchingInlineSnapshot(`[Error: Invalid migration id: 'foo/one']`)
40
40
 
41
41
  expect(() =>
42
42
  validateMigrations({
@@ -61,7 +61,7 @@ describe(validateMigrations, () => {
61
61
  sequenceId: 'foo',
62
62
  })
63
63
  ).toThrowErrorMatchingInlineSnapshot(
64
- `"Every migration in sequence 'foo' must have an id starting with 'foo/'. Got invalid id: 'foo.2'"`
64
+ `[Error: Every migration in sequence 'foo' must have an id starting with 'foo/'. Got invalid id: 'foo.2']`
65
65
  )
66
66
 
67
67
  expect(() =>
@@ -86,7 +86,7 @@ describe(validateMigrations, () => {
86
86
 
87
87
  sequenceId: 'foo',
88
88
  })
89
- ).toThrowErrorMatchingInlineSnapshot(`"Invalid migration id: 'foo/two'"`)
89
+ ).toThrowErrorMatchingInlineSnapshot(`[Error: Invalid migration id: 'foo/two']`)
90
90
  })
91
91
 
92
92
  it('should throw if the sequenceId is invalid', () => {
@@ -96,7 +96,7 @@ describe(validateMigrations, () => {
96
96
  sequence: [],
97
97
  sequenceId: 'foo/bar',
98
98
  })
99
- ).toThrowErrorMatchingInlineSnapshot(`"sequenceId cannot contain a '/', got foo/bar"`)
99
+ ).toThrowErrorMatchingInlineSnapshot(`[Error: sequenceId cannot contain a '/', got foo/bar]`)
100
100
 
101
101
  expect(() =>
102
102
  validateMigrations({
@@ -104,7 +104,7 @@ describe(validateMigrations, () => {
104
104
  sequence: [],
105
105
  sequenceId: '',
106
106
  })
107
- ).toThrowErrorMatchingInlineSnapshot(`"sequenceId must be a non-empty string"`)
107
+ ).toThrowErrorMatchingInlineSnapshot(`[Error: sequenceId must be a non-empty string]`)
108
108
  })
109
109
 
110
110
  it('should throw if the version numbers do not start at 1', () => {
@@ -124,7 +124,7 @@ describe(validateMigrations, () => {
124
124
  sequenceId: 'foo',
125
125
  })
126
126
  ).toThrowErrorMatchingInlineSnapshot(
127
- `"Expected the first migrationId to be 'foo/1' but got 'foo/2'"`
127
+ `[Error: Expected the first migrationId to be 'foo/1' but got 'foo/2']`
128
128
  )
129
129
  })
130
130
 
@@ -159,7 +159,7 @@ describe(validateMigrations, () => {
159
159
  sequenceId: 'foo',
160
160
  })
161
161
  ).toThrowErrorMatchingInlineSnapshot(
162
- `"Migration id numbers must increase in increments of 1, expected foo/3 but got 'foo/4'"`
162
+ `[Error: Migration id numbers must increase in increments of 1, expected foo/3 but got 'foo/4']`
163
163
  )
164
164
  })
165
165
  })