test: improve snapshot testing for js engine #600
ci.yml
on: pull_request
lint
32s
typecheck
1m 3s
Matrix: test
Annotations
52 errors and 5 warnings
typecheck:
packages/engine-javascript/test/compare.test.ts#L54
Expected 3 arguments, but got 2.
|
typecheck
Process completed with exit code 1.
|
packages/engine-javascript/test/compare.test.ts > cases > json-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > json-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > html-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > html-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > ts-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > ts-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > jsonc:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > jsonc 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > vue:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > vue 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > toml:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > toml 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > sql:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > sql 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 1:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 5:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 45,
"length": 0,
"start": 45,
},
Object {
"end": 45,
"length": 0,
"start": 45,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 9:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/compare.test.ts > cases > json-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > json-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > html-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > html-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > ts-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > ts-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > jsonc:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > jsonc 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > vue:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > vue 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > toml:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > toml 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > sql:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > sql 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 1:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 5:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 45,
"length": 0,
"start": 45,
},
Object {
"end": 45,
"length": 0,
"start": 45,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 9:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/compare.test.ts > cases > json-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > json-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > html-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > html-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > ts-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > ts-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > jsonc:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > jsonc 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > vue:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > vue 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > toml:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > toml 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > sql:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > sql 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 1:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 5:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 45,
"length": 0,
"start": 45,
},
Object {
"end": 45,
"length": 0,
"start": 45,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 9:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/compare.test.ts > cases > json-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > json-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > html-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > html-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > ts-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > ts-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > jsonc:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > jsonc 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > vue:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > vue 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > toml:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > toml 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > sql:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > sql 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 1:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 5:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 45,
"length": 0,
"start": 45,
},
Object {
"end": 45,
"length": 0,
"start": 45,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 9:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/compare.test.ts > cases > json-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > json-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > html-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > html-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > ts-basic:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > ts-basic 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > jsonc:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > jsonc 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > vue:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > vue 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > toml:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > toml 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/compare.test.ts > cases > sql:
packages/engine-javascript/test/compare.test.ts#L237
Error: Snapshot `cases > sql 2` mismatched
❯ packages/engine-javascript/test/compare.test.ts:237:7
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 1:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 5:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 45,
"length": 0,
"start": 45,
},
Object {
"end": 45,
"length": 0,
"start": 45,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
packages/engine-javascript/test/verify.test.ts > verify > record: beancount > instances 2 > case 9:
packages/engine-javascript/test/verify.test.ts#L53
AssertionError: expected { index: +0, captureIndices: [ …(2) ] } to deeply equal null
- Expected:
null
+ Received:
Object {
"captureIndices": Array [
Object {
"end": 43,
"length": 0,
"start": 43,
},
Object {
"end": 43,
"length": 0,
"start": 43,
},
],
"index": 0,
}
❯ packages/engine-javascript/test/verify.test.ts:53:30
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test (20.x, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test (18.x, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test (lts/*, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|