-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test runner global configuration #43895
Comments
@nodejs/test_runner |
my personal thoughts: |
FWIW @nodejs/loaders is also brainstorming how to make configuration a thing in nodejs/loaders#98 (comment), maybe we can find a solution that works for both. |
Specifying test files would be helpful too, at current the CLI shell expansions can be a bit limiting, for example using A couple bikesheds: // maybe npm "files" like
export default {
loader: "ts-node/esm",
files: [
"**/*.test.ts",
"!node_modules/",
],
}
// maybe tsconfig like
export default {
loader: "ts-node/esm",
include: [
"**/*.test.ts",
],
exclude: [
"node_modules/",
],
} |
I would expect the files to live in a specific directory like |
It's a common pattern, but not one I often use for multiple reasons. |
Specifying test files can now be done using #44241, |
the question of global configuration for the test runner was raised on a few places,
node:test
#42984)I think it is worth a small discussion about how to provide the ability to globaly configure the test runner.
a few things that might have already been noted in the above links:
The text was updated successfully, but these errors were encountered: