tape-six 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/src/bun/TestWorker.js +3 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[npm-img]: https://img.shields.io/npm/v/tape-six.svg
|
|
4
4
|
[npm-url]: https://npmjs.org/package/tape-six
|
|
5
5
|
|
|
6
|
-
tape-six is a [TAP](https://en.wikipedia.org/wiki/Test_Anything_Protocol)-based library for unit tests.
|
|
6
|
+
`tape-six` is a [TAP](https://en.wikipedia.org/wiki/Test_Anything_Protocol)-based library for unit tests.
|
|
7
7
|
It is written in the modern JavaScript for the modern JavaScript and works in [Node](https://nodejs.org/),
|
|
8
8
|
[Deno](https://deno.land/), [Bun](https://bun.sh/) and browsers.
|
|
9
9
|
|
|
@@ -236,6 +236,8 @@ See [set-up tests](https://github.com/uhop/tape-six/wiki/Set-up-tests) for detai
|
|
|
236
236
|
|
|
237
237
|
The most recent releases:
|
|
238
238
|
|
|
239
|
+
* 1.0.3 *Minor update to accommodate changes in Bun and updated dev deps.*
|
|
240
|
+
* 1.0.2 *Bugfix for Deno using the JSONL reporter.*
|
|
239
241
|
* 1.0.1 *Technical release: added more links.*
|
|
240
242
|
* 1.0.0 *The first official release.*
|
|
241
243
|
* 0.12.3 *Technical release: exposed internal classes for external utilities.*
|
package/index.js
CHANGED
|
@@ -67,7 +67,7 @@ const init = async () => {
|
|
|
67
67
|
reporter = jsonlReporter.report.bind(jsonlReporter);
|
|
68
68
|
}
|
|
69
69
|
} else if (isDeno) {
|
|
70
|
-
if (Deno.env.TAPE6_JSONL) {
|
|
70
|
+
if (Deno.env.get('TAPE6_JSONL')) {
|
|
71
71
|
const JSONLReporter = (await import('./src/JSONLReporter.js')).default,
|
|
72
72
|
jsonlReporter = new JSONLReporter(options);
|
|
73
73
|
reporter = jsonlReporter.report.bind(jsonlReporter);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tape-six",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "TAP the test harness for the modern JavaScript (ES6).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"puppeteer": "^
|
|
67
|
+
"puppeteer": "^24.1.0"
|
|
68
68
|
}
|
|
69
69
|
}
|
package/src/bun/TestWorker.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import {sep} from 'node:path';
|
|
2
|
+
|
|
1
3
|
import {StopTest} from '../State.js';
|
|
2
4
|
import EventServer from '../utils/EventServer.js';
|
|
3
5
|
|
|
4
6
|
const utilName = new URL('../test.js', import.meta.url),
|
|
5
|
-
baseName = Bun.pathToFileURL(Bun.cwd);
|
|
7
|
+
baseName = Bun.pathToFileURL(Bun.cwd + sep);
|
|
6
8
|
|
|
7
9
|
export default class TestWorker extends EventServer {
|
|
8
10
|
constructor(reporter, numberOfTasks = navigator.hardwareConcurrency, options) {
|