summaryrefslogtreecommitdiff
path: root/packages/webapi/run/test.setup.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/webapi/run/test.setup.js')
-rw-r--r--packages/webapi/run/test.setup.js29
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)
-}