diff options
author | 2022-04-10 22:29:46 -0300 | |
---|---|---|
committer | 2022-04-10 18:29:46 -0700 | |
commit | 1907255ca239a94b76b1fe3a844a35f0436b8e3d (patch) | |
tree | f4c9935e0ea92f07478fece6a60b85795b24143a /packages/webapi/run/test.setup.js | |
parent | 47f20a189f5479b5e84f99e6feda3be7080e455f (diff) | |
download | astro-1907255ca239a94b76b1fe3a844a35f0436b8e3d.tar.gz astro-1907255ca239a94b76b1fe3a844a35f0436b8e3d.tar.zst astro-1907255ca239a94b76b1fe3a844a35f0436b8e3d.zip |
chore: webapi test now use chai (#3048)
Diffstat (limited to 'packages/webapi/run/test.setup.js')
-rw-r--r-- | packages/webapi/run/test.setup.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/packages/webapi/run/test.setup.js b/packages/webapi/run/test.setup.js deleted file mode 100644 index 6998a43bd..000000000 --- a/packages/webapi/run/test.setup.js +++ /dev/null @@ -1,29 +0,0 @@ -import { fileURLToPath } from 'url' - -export { strict as assert } from 'assert' - -export const pathFrom = (...args) => - fileURLToPath(args.reduce((url, bit) => new URL(bit, url), new URL('file:'))) - -export const test = async (setup) => { - console.log(`Testing Node ${process.version}:`) - console.log('') - - for (const test of setup()) { - try { - console.log(`- ${test.name}`) - - await test.test() - } catch (error) { - console.error(error) - - process.exit(1) - } - } - - console.log('') - console.log('Pass!') - console.log('') - - process.exit(0) -} |