From d9c85e016f054fd3b6c68a54213e7c0ad8c3a8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 2 Aug 2023 17:11:04 +0200 Subject: fix(node): node:test reports correct location (#20025) Also removed some noisy output that caused test flakiness. --- cli/tests/testdata/node/test.out | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/testdata/node/test.out b/cli/tests/testdata/node/test.out index afda0eca3..8b7f0780f 100644 --- a/cli/tests/testdata/node/test.out +++ b/cli/tests/testdata/node/test.out @@ -1,10 +1,4 @@ [WILDCARD] -Warning: Not implemented: test.options.concurrency -Warning: Not implemented: test.options.concurrency -Warning: Not implemented: test.options.timeout -Warning: Not implemented: test.options.timeout -Warning: Not implemented: test.options.timeout -Warning: Not implemented: test.options.timeout running 62 tests from ./node/test.js sync pass todo ... ------- output ------- @@ -109,32 +103,32 @@ unfinished test with unhandledRejection ... cancelled ([WILDCARD]) ERRORS -sync fail todo => node:test:135:10 +sync fail todo => ./node/test.js:20:1 error: Error: thrown from sync fail todo throw new Error("thrown from sync fail todo"); [WILDCARD] -sync fail todo with message => node:test:135:10 +sync fail todo with message => ./node/test.js:25:1 error: Error: thrown from sync fail todo with message throw new Error("thrown from sync fail todo with message"); [WILDCARD] -sync throw fail => node:test:135:10 +sync throw fail => ./node/test.js:42:1 error: Error: thrown from sync throw fail throw new Error("thrown from sync throw fail"); [WILDCARD] -async throw fail => node:test:135:10 +async throw fail => ./node/test.js:53:1 error: Error: thrown from async throw fail throw new Error("thrown from async throw fail"); [WILDCARD] -async skip fail => node:test:135:10 +async skip fail => ./node/test.js:57:1 error: Error: thrown from async throw fail throw new Error("thrown from async throw fail"); [WILDCARD] -async assertion fail => node:test:135:10 +async assertion fail => ./node/test.js:62:1 error: AssertionError: Values are not strictly equal: @@ -146,7 +140,7 @@ error: AssertionError: Values are not strictly equal: at [WILDCARD] -reject fail => node:test:135:10 +reject fail => ./node/test.js:71:1 error: Error: rejected from reject fail return Promise.reject(new Error("rejected from reject fail")); ^ @@ -162,13 +156,13 @@ It most likely originated from a dangling promise, event/timeout handler or top- FAILURES -sync fail todo => node:test:135:10 -sync fail todo with message => node:test:135:10 -sync throw fail => node:test:135:10 -async throw fail => node:test:135:10 -async skip fail => node:test:135:10 -async assertion fail => node:test:135:10 -reject fail => node:test:135:10 +sync fail todo => ./node/test.js:20:1 +sync fail todo with message => ./node/test.js:25:1 +sync throw fail => ./node/test.js:42:1 +async throw fail => ./node/test.js:53:1 +async skip fail => ./node/test.js:57:1 +async assertion fail => ./node/test.js:62:1 +reject fail => ./node/test.js:71:1 ./node/test.js (uncaught error) FAILED | 8 passed | 51 failed | 4 ignored [WILDCARD] -- cgit v1.2.3