From 35cb5db1de17bbfb59b6beb66539c5a132214488 Mon Sep 17 00:00:00 2001 From: Mattias Buelens Date: Fri, 12 Mar 2021 01:03:44 +0100 Subject: [PATCH] Set up tests --- package.json | 5 ++++- test/wpt/status/streams.json | 14 ++++++++++++++ test/wpt/test.js | 30 ++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 test/wpt/status/streams.json create mode 100644 test/wpt/test.js diff --git a/package.json b/package.json index 069353b..19a4ac3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "WIP support for WHATWG Stream in Node", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "node --expose-internals --expose_gc test/wpt/test.js" }, "repository": { "type": "git", @@ -16,6 +16,9 @@ "url": "https://github.com/nodejs/whatwg-stream/issues" }, "homepage": "https://github.com/nodejs/whatwg-stream#readme", + "engines": { + "node": ">= 15" + }, "dependencies": { "web-streams-polyfill": "^3.0.2" } diff --git a/test/wpt/status/streams.json b/test/wpt/status/streams.json new file mode 100644 index 0000000..b2419b3 --- /dev/null +++ b/test/wpt/status/streams.json @@ -0,0 +1,14 @@ +{ + "piping/pipe-through.any.js": { + "fail": "Node does not perform a brand check for AbortSignal.prototype.aborted" + }, + "queuing-strategies-size-function-per-global.window.js": { + "skip": "test requires an