Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(test): Remove windows-specific prepare-install #432

Merged
merged 7 commits into from
Jul 3, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Filter tests for windoes
  • Loading branch information
jeffsee55 committed Jul 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 1612e20e6ddff77406f1196ec1990bab010a6433
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
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
@@ -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);

jeffsee55 marked this conversation as resolved.
Show resolved Hide resolved
let currentIntegrationDir = integrationDir;

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