Skip to content

Commit d663d71

Browse files
committed
validate snap
1 parent b9fa920 commit d663d71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/run-ci-javascript-tests.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ try {
5656
throw Error(exitCode);
5757
}
5858

59+
describe('Test: Validate JS API snapshot');
60+
if (exec(`${YARN_BINARY} run build-types --withSnapshot --validate`).code) {
61+
echo(
62+
'JS API snapshot validation failed. Please run `yarn build-types --withSnapshot` to update the snapshot.',
63+
);
64+
exitCode = 1;
65+
throw Error(exitCode);
66+
}
67+
5968
describe('Test: Flow check');
6069
const flowCommand =
6170
FLOW_BINARY == null

0 commit comments

Comments
 (0)