Skip to content

Commit

Permalink
fix(tests): run checksum verification pre-checks only for fixtures on…
Browse files Browse the repository at this point in the history
… their own target platforms
  • Loading branch information
paambaati committed May 5, 2023
1 parent e3263fd commit 4dc408b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/main.test.ts
Expand Up @@ -58,12 +58,12 @@ test('🛠 setup', (t) => {
}
});

test('📝 check if all fixtures have the correct checksums', async (t) => {
test('📝 check if all fixtures have the correct checksums on their own platforms', async (t) => {
const path = './test/fixtures' as const;
const files = await readdir(path);
const checks: Array<{ fixture: string; verified: Promise<boolean> }> = [];
const fixtures = files.filter(
(file) => extname(file) === '.sh' || extname(file) === '.bat'
const fixtures = files.filter((file) =>
PLATFORM === 'win32' ? extname(file) === '.bat' : extname(file) === '.sh'
);
for (const fixture of fixtures) {
const filePath = joinPath(path, fixture);
Expand Down

0 comments on commit 4dc408b

Please sign in to comment.