Skip to content

Commit

Permalink
Filter tests for windoes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsee55 committed Jul 2, 2024
1 parent 2cd9d66 commit 1612e20
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"prepublishOnly": "tsc && rm out/utils/*.d.ts && rm out/tsconfig.tsbuildinfo",
"prettier-check": "prettier --check .",
"prettier-fix": "prettier --write .",
"test": "cat package-lock.json && jest --verbose",
"test": "jest --verbose",
"test-verbose": "tsc --sourceMap && jest --verbose --coverage --globals \"{\\\"coverage\\\":true}\""
},
"prettier": "@vercel/style-guide/prettier",
Expand Down
22 changes: 0 additions & 22 deletions prepare-install.js

This file was deleted.

22 changes: 21 additions & 1 deletion test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,27 @@ jest.setTimeout(200_000);

const integrationDir = `${__dirname}${path.sep}integration`;

for (const integrationTest of readdirSync(integrationDir)) {
const integrationTests = readdirSync(integrationDir);
const filteredTestsToRun = integrationTests.filter((testName) => {
const isWin = process.platform === 'win32';
if (
isWin &&
[
'argon2.js',
'highlights.js',
'hot-shots.js',
'loopback.js',
'playwright-core.js',
].includes(testName)
) {
return false;
}
return true;
});

for (const integrationTest of filteredTestsToRun) {
console.log('Integration test: ' + integrationTest);

let currentIntegrationDir = integrationDir;

it(`should correctly trace and correctly execute ${integrationTest}`, async () => {
Expand Down

0 comments on commit 1612e20

Please sign in to comment.