From de54a61d2f2bc1e0b3d6522cd27990aacaa534ce Mon Sep 17 00:00:00 2001 From: James Prevett Date: Thu, 16 Jan 2025 22:35:33 -0600 Subject: [PATCH] Fix test names --- scripts/test.js | 6 +++--- tests/fetch/run.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/test.js b/scripts/test.js index e6b6553e..21054831 100755 --- a/scripts/test.js +++ b/scripts/test.js @@ -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({ @@ -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); diff --git a/tests/fetch/run.sh b/tests/fetch/run.sh index afa37dcd..30d15567 100755 --- a/tests/fetch/run.sh +++ b/tests/fetch/run.sh @@ -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