Skip to content

Commit b3671bc

Browse files
committed
Update jest tests to 30.x, run rush change
1 parent c1a441d commit b3671bc

File tree

118 files changed

+365
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+365
-154
lines changed

apps/api-documenter/src/markdown/test/__snapshots__/CustomMarkdownEmitter.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`render Markdown from TSDoc 1`] = `
44
"

apps/api-documenter/src/utils/test/__snapshots__/IndentedWriter.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`01 Demo from docs 1`] = `
44
"begin

apps/lockfile-explorer/src/graph/test/__snapshots__/lfxGraph-edge-cases-v5.4.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`lfxGraph-edge-cases-v5.4 loads a workspace 1`] = `
44
"entries:

apps/lockfile-explorer/src/graph/test/__snapshots__/lfxGraph-edge-cases-v6.0.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`lfxGraph-edge-cases-v6.0 loads a workspace 1`] = `
44
"entries:

apps/lockfile-explorer/src/graph/test/__snapshots__/lfxGraph-edge-cases-v9.0.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`lfxGraph-edge-cases-v9.0 loads a workspace 1`] = `
44
"entries:

apps/lockfile-explorer/src/graph/test/__snapshots__/lfxGraph-website-sample-1-v5.4.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`lfxGraph-website-sample-1-v5.4 loads a workspace 1`] = `
44
"entries:

apps/lockfile-explorer/src/graph/test/__snapshots__/lfxGraph-website-sample-1-v6.0.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`lfxGraph-website-sample-1-v6.0 loads a workspace 1`] = `
44
"entries:

apps/lockfile-explorer/src/graph/test/__snapshots__/lfxGraph-website-sample-1-v9.0.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`lfxGraph-website-sample-1-v9.0 loads a workspace 1`] = `
44
"entries:

apps/lockfile-explorer/src/graph/test/lockfilePath.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('lockfilePath', () => {
99
expect(lockfilePath.getBaseNameOf('.')).toBe('.');
1010
expect(lockfilePath.getBaseNameOf('')).toBe('');
1111

12-
expect(() => lockfilePath.getParentOf('/a/')).toThrowError('has a trailing slash');
12+
expect(() => lockfilePath.getParentOf('/a/')).toThrow('has a trailing slash');
1313
});
1414

1515
it('getParentOf', () => {
@@ -19,10 +19,10 @@ describe('lockfilePath', () => {
1919
expect(lockfilePath.getParentOf('/a')).toBe('/');
2020
expect(lockfilePath.getParentOf('a')).toBe('.');
2121

22-
expect(() => lockfilePath.getParentOf('')).toThrowError('has no parent');
23-
expect(() => lockfilePath.getParentOf('/')).toThrowError('has no parent');
24-
expect(() => lockfilePath.getParentOf('.')).toThrowError('has no parent');
25-
expect(() => lockfilePath.getParentOf('/a/')).toThrowError('has a trailing slash');
22+
expect(() => lockfilePath.getParentOf('')).toThrow('has no parent');
23+
expect(() => lockfilePath.getParentOf('/')).toThrow('has no parent');
24+
expect(() => lockfilePath.getParentOf('.')).toThrow('has no parent');
25+
expect(() => lockfilePath.getParentOf('/a/')).toThrow('has a trailing slash');
2626
});
2727

2828
it('getAbsolute', () => {
@@ -35,7 +35,7 @@ describe('lockfilePath', () => {
3535
expect(lockfilePath.getAbsolute('C:/a/b', '../d')).toBe('C:/a/d');
3636

3737
// Error case
38-
expect(() => lockfilePath.getAbsolute('a/b/c', '../../../..')).toThrowError('goes above the root folder');
38+
expect(() => lockfilePath.getAbsolute('a/b/c', '../../../..')).toThrow('goes above the root folder');
3939

4040
// Degenerate cases
4141
expect(lockfilePath.getAbsolute('a/b/c/', 'd/')).toBe('a/b/c/d');

apps/lockfile-explorer/src/test/__snapshots__/help.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`CLI Tool Tests should display help for "lockfile-explorer --help" 1`] = `
44
"usage: lockfile-explorer [-h] [-d] [--subspace SUBSPACE_NAME]

0 commit comments

Comments
 (0)