You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(wrangler): Update vitest config to capture .tsx tests (#6277)
Our current vitest setup targets only "**/__tests__/**/*.test.ts"
files. This incorrectly excludes `.tsx` test files, such as
"**/__tests__/dev.test.tsx".
This commit updates the vitest config file to target such
test files as well.
`"Missing entry-point: The entry-point should be specified via the command line (e.g. \`wrangler dev path/to/script\`) or the \`main\` config field."`
170
+
`[Error: Missing entry-point: The entry-point should be specified via the command line (e.g. \`wrangler dev path/to/script\`) or the \`main\` config field.]`
--compatibility-date Date to use for compatibility checks [string]
1210
-
--compatibility-flags, --compatibility-flag Flags to use for compatibility checks [array]
1211
-
--latest Use the latest version of the worker runtime [boolean] [default: true]
1212
-
--ip IP address to listen on [string]
1213
-
--port Port to listen on [number]
1214
-
--inspector-port Port for devtools to connect to [number]
1215
-
--routes, --route Routes to upload [array]
1216
-
--host Host to forward requests to, defaults to the zone of project [string]
1217
-
--local-protocol Protocol to listen to requests on, defaults to http. [choices: \\"http\\", \\"https\\"]
1218
-
--https-key-path Path to a custom certificate key [string]
1219
-
--https-cert-path Path to a custom certificate [string]
1220
-
--local-upstream Host to act as origin in local mode, defaults to dev.host or route [string]
1221
-
--assets Static assets to be served [string]
1222
-
--site Root folder of static assets for Workers Sites [string]
1223
-
--site-include Array of .gitignore-style patterns that match file or directory names from the sites directory. Only matched items will be uploaded. [array]
1224
-
--site-exclude Array of .gitignore-style patterns that match file or directory names from the sites directory. Matched items will not be uploaded. [array]
1225
-
--upstream-protocol Protocol to forward requests to host on, defaults to https. [choices: \\"http\\", \\"https\\"]
1226
-
--var A key-value pair to be injected into the script as a variable [array]
1227
-
--define A key-value pair to be substituted in the script [array]
1228
-
--jsx-factory The function that is called for each JSX element [string]
1229
-
--jsx-fragment The function that is called for each JSX fragment [string]
1230
-
--tsconfig Path to a custom tsconfig.json file [string]
1231
-
-r, --remote Run on the global Cloudflare network with access to production resources [boolean] [default: false]
--compatibility-date Date to use for compatibility checks [string]
1210
+
--compatibility-flags, --compatibility-flag Flags to use for compatibility checks [array]
1211
+
--latest Use the latest version of the worker runtime [boolean] [default: true]
1212
+
--ip IP address to listen on [string]
1213
+
--port Port to listen on [number]
1214
+
--inspector-port Port for devtools to connect to [number]
1215
+
--routes, --route Routes to upload [array]
1216
+
--host Host to forward requests to, defaults to the zone of project [string]
1217
+
--local-protocol Protocol to listen to requests on, defaults to http. [choices: \\"http\\", \\"https\\"]
1218
+
--https-key-path Path to a custom certificate key [string]
1219
+
--https-cert-path Path to a custom certificate [string]
1220
+
--local-upstream Host to act as origin in local mode, defaults to dev.host or route [string]
1221
+
--assets Static assets to be served [string]
1222
+
--site Root folder of static assets for Workers Sites [string]
1223
+
--site-include Array of .gitignore-style patterns that match file or directory names from the sites directory. Only matched items will be uploaded. [array]
1224
+
--site-exclude Array of .gitignore-style patterns that match file or directory names from the sites directory. Matched items will not be uploaded. [array]
1225
+
--upstream-protocol Protocol to forward requests to host on, defaults to https. [choices: \\"http\\", \\"https\\"]
1226
+
--var A key-value pair to be injected into the script as a variable [array]
1227
+
--define A key-value pair to be substituted in the script [array]
1228
+
--alias A module pair to be substituted in the script [array]
1229
+
--jsx-factory The function that is called for each JSX element [string]
1230
+
--jsx-fragment The function that is called for each JSX fragment [string]
1231
+
--tsconfig Path to a custom tsconfig.json file [string]
1232
+
-r, --remote Run on the global Cloudflare network with access to production resources [boolean] [default: false]
--show-interactive-dev-session Show interactive dev session (defaults to true if the terminal supports interactivity) [boolean]
1240
+
--experimental-dev-env, --x-dev-env Use the experimental DevEnv instantiation (unified across wrangler dev and unstable_dev) [boolean] [default: false]
1241
+
--experimental-registry, --x-registry Use the experimental file based dev registry for multi-worker development [boolean] [default: false]",
1242
+
"warn": "",
1243
+
}
1244
+
`);
1242
1245
});
1243
1246
1244
1247
it("should error if --assets and --site are used together",async()=>{
`"The \`nodejs_compat\` compatibility flag cannot be used in conjunction with the legacy \`--node-compat\` flag. If you want to use the Workers runtime Node.js compatibility features, please remove the \`--node-compat\` argument from your CLI command or \`node_compat = true\` from your config file."`
1570
+
`[Error: The \`nodejs_compat\` compatibility flag cannot be used in conjunction with the legacy \`--node-compat\` flag. If you want to use the Workers \`nodejs_compat\` compatibility flag, please remove the \`--node-compat\` argument from your CLI command or \`node_compat = true\` from your config file.]`
0 commit comments