Skip to content

Commit

Permalink
Fix test names
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Jan 17, 2025
1 parent 9d6d358 commit de54a61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node

import { execSync } from 'node:child_process';
import { existsSync, mkdirSync, rmSync, globSync } from 'node:fs';
import { join, basename } from 'node:path';
import { existsSync, globSync, mkdirSync, rmSync } from 'node:fs';
import { join, parse } from 'node:path';
import { parseArgs } from 'node:util';

const { values: options, positionals } = parseArgs({
Expand Down Expand Up @@ -178,7 +178,7 @@ for (const setupFile of positionals) {

process.env.SETUP = setupFile;

const name = options['file-names'] && !options.ci ? setupFile : basename(setupFile);
const name = options['file-names'] && !options.ci ? setupFile : parse(setupFile).name;

!options.quiet && console.log('Running tests:', name);

Expand Down
2 changes: 1 addition & 1 deletion tests/fetch/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ until nc -z localhost 26514; do
sleep 0.5
done

npx zenfs-test $SCRIPT_DIR/setup.ts --preserve --force "$@"
npx zenfs-test $SCRIPT_DIR/cow+fetch.ts --preserve --force "$@"

kill $PID

0 comments on commit de54a61

Please sign in to comment.