Revert "Pin Node.js to v22.6.0" (#16642)
This commit is contained in:
1 parent
6168d1e990
commit
69f419213e
4 files changed
+11
-7
No files matched your search
@@ -27,13 +27,13 @@ jobs:
|
||||
- "windows-latest"
|
||||
node:
|
||||
# Latest even version
|
||||
- "22.6.0"
|
||||
- "22"
|
||||
# Minimal version for development
|
||||
- "18"
|
||||
include:
|
||||
- os: "ubuntu-latest"
|
||||
# Pick a version that is fast (normally highest LTS version)
|
||||
node: "22.6.0"
|
||||
node: "22"
|
||||
ENABLE_CODE_COVERAGE: true
|
||||
FULL_TEST: true
|
||||
CHECK_TEST_PARSERS: true
|
||||
|
||||
@@ -56,13 +56,13 @@ jobs:
|
||||
- "windows-latest"
|
||||
node:
|
||||
# Latest even version
|
||||
- "22.6.0"
|
||||
- "22"
|
||||
# Minimal version for production
|
||||
- "14"
|
||||
include:
|
||||
- os: "ubuntu-latest"
|
||||
# Pick a version that is fast (normally highest LTS version)
|
||||
node: "22.6.0"
|
||||
node: "22"
|
||||
FULL_TEST: true
|
||||
# Versions not tested on linux, normally only even versions
|
||||
# If latest version is an odd number, it can be listed below too
|
||||
|
||||
@@ -290,6 +290,7 @@
|
||||
"TSJS",
|
||||
"typecasted",
|
||||
"typecheck",
|
||||
"TYPELESS",
|
||||
"Ubie",
|
||||
"Uchino",
|
||||
"Umidbek",
|
||||
|
||||
@@ -276,7 +276,8 @@ test(".js config file", async () => {
|
||||
"cjs-prettier-config-js-in-type-commonjs",
|
||||
"cjs-prettier-config-js-in-type-none",
|
||||
"cjs-prettierrc-js-in-type-commonjs",
|
||||
"cjs-prettierrc-js-in-type-none",
|
||||
// Node.js v22.7 throws `MODULE_TYPELESS_PACKAGE_JSON` when `type` missed in package.json
|
||||
// "cjs-prettierrc-js-in-type-none",
|
||||
"mjs-prettier-config-js-in-type-module",
|
||||
"mjs-prettierrc-js-in-type-module",
|
||||
]) {
|
||||
@@ -296,9 +297,11 @@ test(".js config file", async () => {
|
||||
const mjsError = /Unexpected token 'export'/u;
|
||||
for (const directoryName of [
|
||||
"mjs-prettier-config-js-in-type-commonjs",
|
||||
"mjs-prettier-config-js-in-type-none",
|
||||
// Node.js v22.7 throws `MODULE_TYPELESS_PACKAGE_JSON` when `type` missed in package.json
|
||||
// "mjs-prettier-config-js-in-type-none",
|
||||
"mjs-prettierrc-js-in-type-commonjs",
|
||||
"mjs-prettierrc-js-in-type-none",
|
||||
// Node.js v22.7 throws `MODULE_TYPELESS_PACKAGE_JSON` when `type` missed in package.json
|
||||
// "mjs-prettierrc-js-in-type-none",
|
||||
]) {
|
||||
const file = new URL(`./${directoryName}/foo.js`, parentDirectory);
|
||||
await expect(prettier.resolveConfig(file)).rejects.toThrow(mjsError);
|
||||
|
||||
Reference in new issue
Block a user