Skip to content

Commit 2705c4f

Browse files
committed
fix snapshot versions
1 parent 2c4419e commit 2705c4f

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

β€Žintegration-tests/happy-path-npm/__snapshots__/happy-path-npm.test.ts.snap

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`Test happy-path-npm: making patch 1`] = `
44
"SNAPSHOT: making patch
5+
patch-package 0.0.0
56
βœ” Creating temporary folder
67
βœ” Making tmp package.json
78
βœ” Installing [email protected] with npm

β€Žintegration-tests/happy-path-yarn/__snapshots__/happy-path-yarn.test.ts.snap

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`Test happy-path-yarn: making patch 1`] = `
44
"SNAPSHOT: making patch
5+
patch-package 0.0.0
56
βœ” Creating temporary folder
67
βœ” Making tmp package.json
78
βœ” Installing [email protected] with yarn

β€Žintegration-tests/nested-packages/__snapshots__/nested-packages.test.ts.snap

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`Test nested-packages: create the patch 1`] = `
44
"SNAPSHOT: create the patch
5+
patch-package 0.0.0
56
βœ” Creating temporary folder
67
βœ” Making tmp package.json
78
βœ” Installing [email protected] with yarn
@@ -12,7 +13,8 @@ END SNAPSHOT"
1213

1314
exports[`Test nested-packages: run patch-package 1`] = `
1415
"SNAPSHOT: run patch-package
15-
patch-package: Applying patches...
16+
patch-package 0.0.0
17+
Applying patches...
1618
wrap-ansi/[email protected] βœ”
1719
END SNAPSHOT"
1820
`;

β€Žintegration-tests/nested-scoped-packages/__snapshots__/nested-scoped-packages.test.ts.snap

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`Test nested-scoped-packages: create the patch 1`] = `
44
"SNAPSHOT: create the patch
5+
patch-package 0.0.0
56
βœ” Creating temporary folder
67
βœ” Making tmp package.json
78
βœ” Installing @types/[email protected] with yarn
@@ -12,7 +13,8 @@ END SNAPSHOT"
1213

1314
exports[`Test nested-scoped-packages: run patch-package 1`] = `
1415
"SNAPSHOT: run patch-package
15-
patch-package: Applying patches...
16+
patch-package 0.0.0
17+
Applying patches...
1618
@microsoft/mezzurite-core/@types/[email protected] βœ”
1719
END SNAPSHOT"
1820
`;

β€Žrun-tests.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ export CI=true
55

66
yarn clean
77
yarn build
8+
version=$(node -e 'console.log(require("./package.json").version)')
9+
yarn version --new-version 0.0.0 --no-git-tag-version --no-commit-hooks
810
yarn pack --filename patch-package.test.$(date +%s).tgz
9-
jest "$@"
11+
yarn version --new-version $version --no-git-tag-version --no-commit-hooks
12+
yarn jest "$@"

0 commit comments

Comments
Β (0)