Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`render Markdown from TSDoc 1`] = `
"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`01 Demo from docs 1`] = `
"begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`lfxGraph-edge-cases-v5.4 loads a workspace 1`] = `
"entries:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`lfxGraph-edge-cases-v6.0 loads a workspace 1`] = `
"entries:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`lfxGraph-edge-cases-v9.0 loads a workspace 1`] = `
"entries:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`lfxGraph-website-sample-1-v5.4 loads a workspace 1`] = `
"entries:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`lfxGraph-website-sample-1-v6.0 loads a workspace 1`] = `
"entries:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`lfxGraph-website-sample-1-v9.0 loads a workspace 1`] = `
"entries:
Expand Down
12 changes: 6 additions & 6 deletions apps/lockfile-explorer/src/graph/test/lockfilePath.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('lockfilePath', () => {
expect(lockfilePath.getBaseNameOf('.')).toBe('.');
expect(lockfilePath.getBaseNameOf('')).toBe('');

expect(() => lockfilePath.getParentOf('/a/')).toThrowError('has a trailing slash');
expect(() => lockfilePath.getParentOf('/a/')).toThrow('has a trailing slash');
});

it('getParentOf', () => {
Expand All @@ -19,10 +19,10 @@ describe('lockfilePath', () => {
expect(lockfilePath.getParentOf('/a')).toBe('/');
expect(lockfilePath.getParentOf('a')).toBe('.');

expect(() => lockfilePath.getParentOf('')).toThrowError('has no parent');
expect(() => lockfilePath.getParentOf('/')).toThrowError('has no parent');
expect(() => lockfilePath.getParentOf('.')).toThrowError('has no parent');
expect(() => lockfilePath.getParentOf('/a/')).toThrowError('has a trailing slash');
expect(() => lockfilePath.getParentOf('')).toThrow('has no parent');
expect(() => lockfilePath.getParentOf('/')).toThrow('has no parent');
expect(() => lockfilePath.getParentOf('.')).toThrow('has no parent');
expect(() => lockfilePath.getParentOf('/a/')).toThrow('has a trailing slash');
});

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

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

// Degenerate cases
expect(lockfilePath.getAbsolute('a/b/c/', 'd/')).toBe('a/b/c/d');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`CLI Tool Tests should display help for "lockfile-explorer --help" 1`] = `
"usage: lockfile-explorer [-h] [-d] [--subspace SUBSPACE_NAME]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`CLI Tool Tests should display help for "zipsync --help" 1`] = `
"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`Example Test Correctly handles snapshots 1`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`Example Test Correctly handles snapshots 1`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`api-documenter YAML: itemContents 1`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.57.7"
"packageVersion": "7.58.0"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`Sarif Logs has the expected content 1`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`ESM Node Import Test should resolve @rushstack/node-core-library correctly under Node.js ESM 1`] = `
"ESM import test PASSED: @rushstack/node-core-library resolved correctly under Node.js ESM.
Expand Down
2 changes: 1 addition & 1 deletion build-tests/heft-jest-preset-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"_phase:test": "heft run --only test -- --clean && node ./config/verify-coverage.js"
},
"devDependencies": {
"@jest/types": "29.5.0",
"@jest/types": "30.3.0",
"@rushstack/heft": "workspace:*",
"@rushstack/heft-jest-plugin": "workspace:*",
"@rushstack/heft-lint-plugin": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions build-tests/heft-jest-reporters-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"_phase:test": "heft run --only test -- --clean"
},
"devDependencies": {
"@jest/reporters": "~29.5.0",
"@jest/types": "29.5.0",
"@jest/reporters": "~30.3.0",
"@jest/types": "30.3.0",
"@rushstack/heft": "workspace:*",
"@rushstack/heft-jest-plugin": "workspace:*",
"@rushstack/heft-lint-plugin": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`json-schema-typings-plugin should generate formatted typings for JSON Schemas 1`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`Example Test Correctly handles snapshots 1`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`Source Maps Chunk has a source that matches the sourceFileRegex 1`] = `
Array [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`SASS CJS Shims ignored1.scss: files 1`] = `Array []`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`SASS No Shims ignored1.scss: files 1`] = `Array []`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`SASS ESM Shims ignored1.scss: files 1`] = `Array []`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`SASS Typings ignored1.scss: files 1`] = `Array []`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`Example Test Correctly handles snapshots 1`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/api-documenter",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@microsoft/api-documenter"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/rush",
"comment": "Bump jest to 30.x, address changes",
"type": "none"
}
],
"packageName": "@microsoft/rush"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/webpack5-load-themed-styles-loader",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@microsoft/webpack5-load-themed-styles-loader"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/credential-cache",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/credential-cache"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/hashed-folder-copy-plugin",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/hashed-folder-copy-plugin"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/heft-jest-plugin",
"comment": "Bump jest-environment-jsdom to 30.3.0 to address CVE GHSA-vpq2-c234-7xj6",
"type": "minor"
}
],
"packageName": "@rushstack/heft-jest-plugin"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/heft-json-schema-typings-plugin",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/heft-json-schema-typings-plugin"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/heft-node-rig",
"comment": "Bump jest-environment-jsdom to 30.3.0 to address CVE GHSA-vpq2-c234-7xj6",
"type": "minor"
}
],
"packageName": "@rushstack/heft-node-rig"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/heft-vscode-extension-rig",
"comment": "Bump jest-environment-jsdom to 30.3.0 to address CVE GHSA-vpq2-c234-7xj6",
"type": "minor"
}
],
"packageName": "@rushstack/heft-vscode-extension-rig"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/heft-web-rig",
"comment": "Bump jest-environment-jsdom to 30.3.0 to address CVE GHSA-vpq2-c234-7xj6",
"type": "minor"
}
],
"packageName": "@rushstack/heft-web-rig"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/localization-utilities",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/localization-utilities"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/lockfile-explorer",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/lockfile-explorer"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/module-minifier",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/module-minifier"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/package-deps-hash",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/package-deps-hash"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/package-extractor",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/package-extractor"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/typings-generator",
"comment": "Bump jest to 30.x, address changes",
"type": "patch"
}
],
"packageName": "@rushstack/typings-generator"
}
Loading