Skip to content

Commit

Permalink
fix tests: add message ids
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed May 29, 2022
1 parent e03d473 commit 4296945
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions scripts/end-to-end-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1284,31 +1284,31 @@
}, {
// There are two possible output orders due to log output order non-determinism
expectedStderr: [
`▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems
`▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
runner1.js:2:19:
2 │ let data = eval('"runner1" + ".js"')
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
runner2.js:2:19:
2 │ let data = eval('"runner2" + ".js"')
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
`, `▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems
`, `▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
runner2.js:2:19:
2 │ let data = eval('"runner2" + ".js"')
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
runner1.js:2:19:
2 │ let data = eval('"runner1" + ".js"')
Expand Down Expand Up @@ -1352,31 +1352,31 @@
}, {
// There are two possible output orders due to log output order non-determinism
expectedStderr: [
`▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems
`▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
runner1.js:2:19:
2 │ let data = eval('"runner1" + ".js"')
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
runner2.js:2:19:
2 │ let data = eval('"runner2" + ".js"')
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
`, `▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems
`, `▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
runner2.js:2:19:
2 │ let data = eval('"runner2" + ".js"')
╵ ~~~~
You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems
▲ [WARNING] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]
runner1.js:2:19:
2 │ let data = eval('"runner1" + ".js"')
Expand Down Expand Up @@ -2039,7 +2039,7 @@
`,
}, {
async: true,
expectedStderr: `▲ [WARNING] Converting "require" to "esm" is currently not supported
expectedStderr: `▲ [WARNING] Converting "require" to "esm" is currently not supported [unsupported-require-call]
in.js:2:25:
2 │ const {exists} = require('fs')
Expand All @@ -2062,7 +2062,7 @@
`,
}, {
async: true,
expectedStderr: `▲ [WARNING] Converting "require" to "esm" is currently not supported
expectedStderr: `▲ [WARNING] Converting "require" to "esm" is currently not supported [unsupported-require-call]
in.js:2:19:
2 │ const fs = require('fs')
Expand Down Expand Up @@ -3505,25 +3505,25 @@
new Foo().bar()
`,
}, {
expectedStderr: `▲ [WARNING] Writing to read-only method "#method" will throw
expectedStderr: `▲ [WARNING] Writing to read-only method "#method" will throw [private-name-will-throw]
in.js:22:31:
22 │ expect(() => obj.#method = 1, 'Cannot write to priva...
╵ ~~~~~~~
▲ [WARNING] Reading from setter-only property "#setter" will throw
▲ [WARNING] Reading from setter-only property "#setter" will throw [private-name-will-throw]
in.js:23:32:
23 │ ... expect(() => this.#setter, 'member.get is not a funct...
╵ ~~~~~~~
▲ [WARNING] Writing to getter-only property "#getter" will throw
▲ [WARNING] Writing to getter-only property "#getter" will throw [private-name-will-throw]
in.js:24:32:
24 │ ... expect(() => this.#getter = 1, 'member.set is not a f...
╵ ~~~~~~~
▲ [WARNING] Writing to read-only method "#method" will throw
▲ [WARNING] Writing to read-only method "#method" will throw [private-name-will-throw]
in.js:25:32:
25 │ ... expect(() => this.#method = 1, 'member.set is not a f...
Expand Down Expand Up @@ -3690,7 +3690,7 @@
}
`,
}, {
expectedStderr: `▲ [WARNING] This assignment will throw because "Foo" is a constant
expectedStderr: `▲ [WARNING] This assignment will throw because "Foo" is a constant [assign-to-constant]
in.js:5:28:
5 │ static #foo = Foo = class Bar {}
Expand Down Expand Up @@ -3719,7 +3719,7 @@
}
`,
}, {
expectedStderr: `▲ [WARNING] This assignment will throw because "Foo" is a constant
expectedStderr: `▲ [WARNING] This assignment will throw because "Foo" is a constant [assign-to-constant]
in.js:4:28:
4 │ static #foo() { Foo = class Bar{} }
Expand Down Expand Up @@ -5756,7 +5756,7 @@
`,
'src/entry.js.map/x': ``,
}, {
expectedStderr: `▲ [WARNING] Cannot read file "src/entry.js.map": ${errorText}
expectedStderr: `▲ [WARNING] Cannot read file "src/entry.js.map": ${errorText} [missing-source-map]
src/entry.js:2:29:
2 │ //# sourceMappingURL=entry.js.map
Expand Down

0 comments on commit 4296945

Please sign in to comment.