Add the test title to the end of the lineage #157
Annotations
3 errors
run tests with coverage:
e2e/__tests__/console.test.ts#L92
expect(received).toMatchSnapshot()
Snapshot name: `the jsdom console is the same as the test console 2`
- Snapshot - 0
+ Received + 2
+ (node:4836) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
+ (Use `node --trace-deprecation ...` to show where the warning was created)
PASS __tests__/console.test.js
✓ can mock console.error calls from jsdom
at Object.toMatchSnapshot (e2e/__tests__/console.test.ts:92:16)
|
run tests with coverage:
e2e/__tests__/circusDeclarationErrors.test.ts#L22
expect(received).toMatchSnapshot()
Snapshot name: `defining tests and hooks asynchronously throws 1`
- Snapshot - 27
+ Received + 28
@@ -3,59 +3,60 @@
● Test suite failed to run
Cannot add a test after tests have started running. Tests must be defined synchronously.
- 10 |
- 11 | Promise.resolve().then(() => {
+ 178 | } else if (hasStarted) {
- > 12 | test('async definition inside describe', () => {});
+ 179 | state.unhandledErrors.push(
+ > 180 | new Error(
- | ^
+ | ^
- 13 | afterAll(() => {});
+ 181 | 'Cannot add a test after tests have started running. Tests must be defined synchronously.'
- 14 | });
- 15 | });
+ 182 | )
+ 183 | );
at eventHandler (../../packages/jest-circus/build/eventHandler.js:180:11)
at test (__tests__/asyncDefinition.test.js:12:5)
● Test suite failed to run
Cannot add a hook after tests have started running. Hooks must be defined synchronously.
- 11 | Promise.resolve().then(() => {
+ 141 | } else if (hasStarted) {
- 12 | test('async definition inside describe', () => {});
+ 142 | state.unhandledErrors.push(
- > 13 | afterAll(() => {});
- | ^
+ > 143 | new Error(
+ | ^
- 14 | });
+ 144 | 'Cannot add a hook after tests have started running. Hooks must be defined synchronously.'
- 15 | });
+ 145 | )
- 16 |
+ 146 | );
at eventHandler (../../packages/jest-circus/build/eventHandler.js:143:11)
at afterAll (__tests__/asyncDefinition.test.js:13:5)
● Test suite failed to run
Cannot add a test after tests have started running. Tests must be defined synchronously.
- 16 |
- 17 | Promise.resolve().then(() => {
+ 178 | } else if (hasStarted) {
- > 18 | test('async definition outside describe', () => {});
- | ^
- 19 | afterAll(() => {});
- 20 | });
- 21 |
+ 179 | state.unhandledErrors.push(
+ > 180 | new Error(
+ | ^
+ 181 | 'Cannot add a test after tests have started running. Tests must be defined synchronously.'
+ 182 | )
+ 183 | );
at eventHandler (../../packages/jest-circus/build/eventHandler.js:180:11)
at test (__tests__/asyncDefinition.test.js:18:3)
● Test suite failed to run
Cannot add a hook after tests have started running. Hooks must be defined synchronously.
- 17 | Promise.resolve().then(() => {
+ 141 | } else if (hasStarted) {
- 18 | test('async definition outside describe', () => {});
- > 19 | afterAll(() => {});
- | ^
- 20 | });
- 21 |
+ 142 | state.unhandledErrors.push(
+ > 143 | new Error(
+ | ^
+ 144 | 'Cannot add a hook after tests have started running. Hooks must be defined synchronously.'
+ 145 | )
+ 146 | );
at eventHandler (../../packages/jest-circus/build/eventHandler.js:143:11)
at afterAll (__tests__/asyncDefinition.test.js:19:3)
at Object.toMatchSnapshot (e2e/__tests__/circusDeclarationErrors.test.ts:22:16)
|
run tests with coverage
Process completed with exit code 1.
|
Loading