Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit test failing on node js + windows #58

Closed
lowlighter opened this issue Dec 18, 2024 · 0 comments · Fixed by #60
Closed

unit test failing on node js + windows #58

lowlighter opened this issue Dec 18, 2024 · 0 comments · Fixed by #60

Comments

@lowlighter
Copy link
Owner

Scope

repo

Environment

node, windows

What is happening?

Followup of #56, #53

Possibly related to #57

Most of the tests on node + windows works except for the some related to the node:http server

Many "fetch failed" errors occurs hence making the tests related to it fail

Needs investigation

Logs

Subtest: %@event reacts to events and performs http sequence

not ok 187 - %@event reacts to events and performs http sequence

duration_ms: 193.0338
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'unhandledRejection'
error: 'fetch failed'
code: 'ERR_TEST_FAILURE'
name: 'TypeError'
stack: |-
node:internal/deps/undici/undici:13484:13
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async callback (D:\a\mizu\mizu@mizu\http\mod.ts:169:92)
async callback (D:\a\mizu\mizu@mizu\http\event\mod.ts:33:27)
...

Subtest: %@event inherits modifiers from %http directive

not ok 188 - %@event inherits modifiers from %http directive

duration_ms: 299.7674
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :6:24)
async script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:3)
async TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:15)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %@event supports multiple listeners

not ok 189 - %@event supports multiple listeners

duration_ms: 47.2702
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'unhandledRejection'
error: 'fetch failed'
code: 'ERR_TEST_FAILURE'
name: 'TypeError'
stack: |-
node:internal/deps/undici/undici:13484:13
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async callback (D:\a\mizu\mizu@mizu\http\mod.ts:169:92)
async callback (D:\a\mizu\mizu@mizu\http\event\mod.ts:33:27)
...

Subtest: %@event with object notation attaches listeners

not ok 190 - %@event with object notation attaches listeners

duration_ms: 61.3759
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'unhandledRejection'
error: 'fetch failed'
code: 'ERR_TEST_FAILURE'
name: 'TypeError'
stack: |-
node:internal/deps/undici/undici:13484:13
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async callback (D:\a\mizu\mizu@mizu\http\mod.ts:169:92)
async callback (D:\a\mizu\mizu@mizu\http\event\mod.ts:33:27)
...

Subtest: %@event skips commented elements

ok 191 - %@event skips commented elements

duration_ms: 64.4425
...

Error: Test " %@event inherits modifiers from %http directive" at node_modules\@libs\testing\_testing\node.js:6:15 generated asynchronous activity after the test ended. This activity created the error "TypeError: fetch failed" and would have caused the test to fail, but instead triggered an unhandledRejection event.

Error: Test " %@event supports multiple listeners" at node_modules\@libs\testing\_testing\node.js:6:15 generated asynchronous activity after the test ended. This activity created the error "TypeError: fetch failed" and would have caused the test to fail, but instead triggered an unhandledRejection event.

Subtest: %header registers specified headers and exposes them through $headers variable

ok 192 - %header registers specified headers and exposes them through $headers variable

Subtest: %http sends http requests to specified url

not ok 203 - %http sends http requests to specified url

duration_ms: 67.3651
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http sends http requests with given headers and body to specified url

not ok 204 - %http sends http requests with given headers and body to specified url

duration_ms: 42.1899
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http with .follow modifier control redirect policy

not ok 205 - %http with .follow modifier control redirect policy

duration_ms: 49.5258
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Response" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:27)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http with .history modifier push url into history

ok 206 - %http with .history modifier push url into history

duration_ms: 69.9382
...

Subtest: %http with .get modifier changes http method

not ok 207 - %http with .get modifier changes http method

duration_ms: 52.6287
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http with .head modifier changes http method

not ok 208 - %http with .head modifier changes http method

duration_ms: 121.6765
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http with .post modifier changes http method

not ok 209 - %http with .post modifier changes http method

duration_ms: 30.5102
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http with .put modifier changes http method

not ok 210 - %http with .put modifier changes http method

duration_ms: 28.8298
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http with .patch modifier changes http method

not ok 211 - %http with .patch modifier changes http method

duration_ms: 38.6936
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http with .delete modifier changes http method

not ok 212 - %http with .delete modifier changes http method

duration_ms: 43.4618
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http with .method modifier changes http method

not ok 213 - %http with .method modifier changes http method

duration_ms: 28.8253
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http is effectless when no %response directive is attached

ok 214 - %http is effectless when no %response directive is attached

duration_ms: 25.2445
...

Subtest: %http performs a new request only when target url changes

not ok 215 - %http performs a new request only when target url changes

duration_ms: 31.1305
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: 'Expected object to be an instance of "Request" but was "null".'
code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__assert\instance_of.ts:63:9)
toBeInstanceOf (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:209:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:26)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %http skips commented elements

ok 216 - %http skips commented elements

duration_ms: 30.2024
...

Subtest: %response is called after sends http requests

not ok 217 - %response is called after sends http requests

duration_ms: 27.3211
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


-   "0"
+   "1"

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:27)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response is effectless when $response is undefined

ok 218 - %response is effectless when $response is undefined

duration_ms: 26.2882
...

Subtest: %response with single status code [tag] filters out mismatching status

not ok 219 - %response with single status code [tag] filters out mismatching status

duration_ms: 34.4672
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


+   <div>\n
+     ok\n
+   </div>
-   <div *warn="fetch failed"></div>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with status code range [tag] filters out mismatching status

not ok 220 - %response with status code range [tag] filters out mismatching status

duration_ms: 34.5547
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


+   <div>\n
+     ok\n
+   </div>
-   <div *warn="fetch failed"></div>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with status code category [tag] filters out mismatching status

not ok 221 - %response with status code category [tag] filters out mismatching status

duration_ms: 34.541
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


+   <div>\n
+     ok\n
+   </div>
-   <div *warn="fetch failed"></div>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .text modifier set textContent when empty

not ok 222 - %response with .text modifier set textContent when empty

duration_ms: 31.4147
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


+   <div>\n
+     foobar\n
+   </div>
-   <div *warn="fetch failed"></div>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .text modifier set textContent and escapes html when empty

not ok 223 - %response with .text modifier set textContent and escapes html when empty

duration_ms: 29.7694
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


+   <div>\n
+     &lt;foo&gt;bar&lt;/foo&gt;\n
+   </div>
-   <div *warn="fetch failed"></div>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .text modifier executes expression

not ok 224 - %response with .text modifier executes expression

duration_ms: 26.3775
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


-   "null"
+   "foobar"

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:28)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .html modifier set innerHTML when empty

not ok 225 - %response with .html modifier set innerHTML when empty

duration_ms: 29.6207
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


+   <div>\n
+     <foo>\n
+       bar\n
+     </foo>\n
+   </div>
-   <div *warn="fetch failed"></div>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .html modifier executes expression

not ok 226 - %response with .html modifier executes expression

duration_ms: 37.6358
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


-   "null"
+   "<foo>bar</foo>"

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:28)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .json modifier parses content as json

not ok 227 - %response with .json modifier parses content as json

duration_ms: 33.1928
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not equal.

    [Diff] Actual / Expected


-   "null"
+   "[object Object]"

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertEquals (D:\a\mizu\mizu\node_modules@jsr\std__expect_assert_equals.ts:37:9)
toEqual (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:50:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:28)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .xml modifier parses content as xml

not ok 228 - %response with .xml modifier parses content as xml

duration_ms: 25.7988
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not equal.

    [Diff] Actual / Expected


-   "null"
+   "[object Object]"

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertEquals (D:\a\mizu\mizu\node_modules@jsr\std__expect_assert_equals.ts:37:9)
toEqual (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:50:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:28)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .consume modifier consumes body with specified type

not ok 229 - %response with .consume modifier consumes body with specified type

duration_ms: 25.3571
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not equal.

    [Diff] Actual / Expected


-   "null"
+   "[object Object]"

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertEquals (D:\a\mizu\mizu\node_modules@jsr\std__expect_assert_equals.ts:37:9)
toEqual (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:50:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
eval (eval at script (file:///D:/a/mizu/mizu/@mizu/internal/testing/test.ts:1:3852), :4:28)
script (D:\a\mizu\mizu@mizu\internal\testing\test.ts:185:17)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:74:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .swap modifier set outerHTML

not ok 230 - %response with .swap modifier set outerHTML

duration_ms: 33.7264
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


+   <section>\n
+     <foo>\n
+       bar\n
+     </foo>\n
-   <section *warn="fetch failed">\n
-     <div *warn="fetch failed"></div>\n
    </section>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .swap.text modifiers set outerHTML and escapes html

not ok 231 - %response with .swap.text modifiers set outerHTML and escapes html

duration_ms: 29.8694
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


-   <section *warn="fetch failed">\n
-     <div *warn="fetch failed"></div>\n
+   <section>\n
+     &lt;foo&gt;bar&lt;/foo&gt;\n
    </section>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Subtest: %response with .swap modifier keeps attributes

not ok 232 - %response with .swap modifier keeps attributes

duration_ms: 30.5686
location: 'D:\a\mizu\mizu\node_modules\@libs\testing\_testing\node.js:6:15'
failureType: 'testCodeFailure'
error: |-
Values are not strictly equal.

    [Diff] Actual / Expected


+   <section>\n
+     <a foobar="baz">\n
+       foo\n
+     </a>\n
+     bar\n
+     <b foobar="baz">\n
+       baz\n
+     </b>\n
-   <section *warn="fetch failed">\n
-     <div foobar="baz" *warn="fetch failed"></div>\n
    </section>

code: 'ERR_TEST_FAILURE'
name: 'AssertionError'
stack: |-
assertStrictEquals (D:\a\mizu\mizu\node_modules@jsr\std__assert\strict_equals.ts:66:9)
toBe (D:\a\mizu\mizu\node_modules@jsr\std__expect_matchers.ts:29:5)
applyMatcher (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:223:13)
Proxy. (D:\a\mizu\mizu\node_modules@jsr\std__expect\expect.ts:233:13)
expect (D:\a\mizu\mizu@mizu\internal\testing\test.ts:223:64)
TestContext.test2.permissions.net (D:\a\mizu\mizu@mizu\internal\testing\test.ts:77:21)
process.processTicksAndRejections (node:internal/process/task_queues:105:5)
async Test.run (node:internal/test_runner/test:935:9)
async Test.processPendingSubtests (node:internal/test_runner/test:633:7)
...

Minimal reproduction example

Run npm test on node / windows

I have searched for existing issues

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant