Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Mar 3, 2025
1 parent 496f0c0 commit 0c479ec
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
5 changes: 3 additions & 2 deletions tasks/transform_conformance/reporter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ export default class CustomReporter extends JsonReporter {
if (testResult.status === 'passed') continue;

const name = testResult.name.replace(currentDir, './');
const message = testResult.message ||
testResult.assertionResults.flatMap(result => result.failureMessages.map(formatMessage)).join('\n');
const message = testResult.message
? testResult.message.replace(rootDir, './')
: testResult.assertionResults.flatMap(result => result.failureMessages.map(formatMessage)).join('\n');
console.log();
console.log(name);
console.log(message);
Expand Down
24 changes: 13 additions & 11 deletions tasks/transform_conformance/snapshots/babel_exec.snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Passed: 318 of 406 (78.33%)
Failures:

./fixtures/babel/babel-plugin-transform-arrow-functions-test-fixtures-arrow-functions-implicit-var-arguments-exec.test.js
'eval' and 'arguments' cannot be used as a binding identifier in strict mode
Parse failure: 'eval' and 'arguments' cannot be used as a binding identifier in strict mode
At file: ./tasks/transform_conformance/fixtures/babel/babel-plugin-transform-arrow-functions-test-fixtures-arrow-functions-implicit-var-arguments-exec.test.js:4:6

./fixtures/babel/babel-plugin-transform-class-properties-test-fixtures-assumption-setPublicClassFields-static-infer-name-exec.test.js
AssertionError: expected '_Class' to be 'Foo' // Object.is equality
Expand All @@ -18,7 +19,8 @@ AssertionError: expected undefined to be 'hello' // Object.is equality
at ./tasks/transform_conformance/fixtures/babel/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-call-in-decorator-exec.test.js:21:28

./fixtures/babel/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-property-in-accessor-key-exec.test.js
Unexpected token `[`. Expected * for generator, private key, identifier or async
Parse failure: Unexpected token `[`. Expected * for generator, private key, identifier or async
At file: ./tasks/transform_conformance/fixtures/babel/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-property-in-accessor-key-exec.test.js:14:14

./fixtures/babel/babel-plugin-transform-class-properties-test-fixtures-nested-class-super-property-in-decorator-exec.test.js
AssertionError: expected undefined to be 'hello' // Object.is equality
Expand Down Expand Up @@ -61,9 +63,9 @@ TypeError: e.has is not a function

./fixtures/babel/babel-plugin-transform-class-properties-test-fixtures-public-computed-toPrimitive-exec.test.js
AssertionError: expected [Function] to throw error including '@@toPrimitive must return a primitive…' but got 'Cannot convert object to primitive va…'
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js:1648:21)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js:1037:17)
at Proxy.methodWrapper (./node_modules/.pnpm/chai@5.1.2/node_modules/chai/chai.js:1610:25)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.7/node_modules/@vitest/expect/dist/index.js:1646:21)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.7/node_modules/@vitest/expect/dist/index.js:1035:17)
at Proxy.methodWrapper (./node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js:1618:25)
at ./tasks/transform_conformance/fixtures/babel/babel-plugin-transform-class-properties-test-fixtures-public-computed-toPrimitive-exec.test.js:37:5

./fixtures/babel/babel-plugin-transform-class-properties-test-fixtures-public-delete-super-property-exec.test.js
Expand Down Expand Up @@ -430,9 +432,9 @@ ReferenceError: _Foo_brand is not defined

./fixtures/babel/babel-plugin-transform-private-property-in-object-test-fixtures-private-loose-rhs-not-object-exec.test.js
AssertionError: expected [Function] to throw error including 'right-hand side of \'in\' should be a…' but got '_Class_brand is not defined'
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js:1648:21)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js:1037:17)
at Proxy.methodWrapper (./node_modules/.pnpm/chai@5.1.2/node_modules/chai/chai.js:1610:25)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.7/node_modules/@vitest/expect/dist/index.js:1646:21)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.7/node_modules/@vitest/expect/dist/index.js:1035:17)
at Proxy.methodWrapper (./node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js:1618:25)
at ./tasks/transform_conformance/fixtures/babel/babel-plugin-transform-private-property-in-object-test-fixtures-private-loose-rhs-not-object-exec.test.js:176:5

./fixtures/babel/babel-plugin-transform-private-property-in-object-test-fixtures-private-loose-static-shadow-exec.test.js
Expand Down Expand Up @@ -470,9 +472,9 @@ ReferenceError: transformAsync is not defined

./fixtures/babel/babel-preset-env-test-fixtures-plugins-integration-issue-15170-exec.test.js
AssertionError: expected [Function] to not throw an error but 'ReferenceError: x is not defined' was thrown
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js:1648:21)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js:1037:17)
at Proxy.methodWrapper (./node_modules/.pnpm/chai@5.1.2/node_modules/chai/chai.js:1610:25)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.7/node_modules/@vitest/expect/dist/index.js:1646:21)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.7/node_modules/@vitest/expect/dist/index.js:1035:17)
at Proxy.methodWrapper (./node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js:1618:25)
at ./tasks/transform_conformance/fixtures/babel/babel-preset-env-test-fixtures-plugins-integration-issue-15170-exec.test.js:6:9

./fixtures/babel/babel-preset-env-test-fixtures-sanity-check-es2015-constants-exec.test.js
Expand Down
6 changes: 3 additions & 3 deletions tasks/transform_conformance/snapshots/oxc_exec.snap.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Failures:

./fixtures/oxc/babel-plugin-transform-class-properties-test-fixtures-private-field-resolve-to-method-in-computed-key-exec.test.js
AssertionError: expected [Function] to throw error including 'Receiver must be an instance of class…' but got 'Private element is not present on thi…'
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js:1648:21)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.5/node_modules/@vitest/expect/dist/index.js:1037:17)
at Proxy.methodWrapper (./node_modules/.pnpm/chai@5.1.2/node_modules/chai/chai.js:1610:25)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.7/node_modules/@vitest/expect/dist/index.js:1646:21)
at Proxy.<anonymous> (./node_modules/.pnpm/@vitest+expect@3.0.7/node_modules/@vitest/expect/dist/index.js:1035:17)
at Proxy.methodWrapper (./node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js:1618:25)
at ./tasks/transform_conformance/fixtures/oxc/babel-plugin-transform-class-properties-test-fixtures-private-field-resolve-to-method-in-computed-key-exec.test.js:96:33

./fixtures/oxc/babel-plugin-transform-class-properties-test-fixtures-static-super-tagged-template-exec.test.js
Expand Down

0 comments on commit 0c479ec

Please sign in to comment.