Skip to content

Commit

Permalink
Rename tests → test
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 8, 2023
1 parent 1dbc024 commit f89dd93
Show file tree
Hide file tree
Showing 132 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
}
},
{
"files": ["./tests/**/*.{js,ts,tsx}"],
"files": ["./test/**/*.{js,ts,tsx}"],
"parserOptions": {
"sourceType": "module",
"project": "./tests/tsconfig.json"
"project": "./test/tsconfig.json"
},
"rules": {
"@typescript-eslint/no-floating-promises": "off"
Expand Down
4 changes: 2 additions & 2 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ignore": ["**/fixtures", "**/_template"],
"ignoreDependencies": ["@pnpm/logger"],
"node-test-runner": {
"entry": ["tests/**/*.test.ts"],
"project": ["tests/**/*.ts"]
"entry": ["test/**/*.test.ts"],
"project": ["test/**/*.ts"]
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"scripts": {
"knip": "node ./dist/cli.js",
"knip:production": "node ./dist/cli.js --production --strict --ignore-internal",
"lint": "eslint scripts src tests",
"lint:fix": "eslint scripts src tests --fix",
"format": "prettier scripts src tests schema.json --with-node-modules --write --config .prettierrc",
"pretest": "node rmdir.js tmp && swc src -d tmp/src && swc tests -d tmp/tests",
"lint": "eslint scripts src test",
"lint:fix": "eslint scripts src test --fix",
"format": "prettier scripts src test schema.json --with-node-modules --write --config .prettierrc",
"pretest": "node rmdir.js tmp && swc src -d tmp/src && swc test -d tmp/test",
"test": "node --no-warnings --test tmp",
"coverage": "c8 --reporter html node --no-warnings --loader tsx --test tests/*.test.ts tests/*/*.test.ts",
"coverage": "c8 --reporter html node --no-warnings --loader tsx --test test/*.test.ts test/*/*.test.ts",
"watch": "rm $(which knip); npm link && tsc --watch",
"prebuild": "node rmdir.js dist",
"build": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion scripts/create-new-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const templateDir = path.join(pluginsDir, '_template');
const newPluginDir = path.join(pluginsDir, name);
const pluginsBarrelFilePath = path.join(pluginsDir, 'index.ts');
const schemaFilePath = path.join(cwd, 'schema.json');
const pluginTestsDir = path.join(cwd, 'tests/plugins');
const pluginTestsDir = path.join(cwd, 'test/plugins');
const validatorFilePath = path.join(cwd, 'src/ConfigurationValidator.ts');
const pluginTestTemplateFilePath = path.join(pluginTestsDir, '_template.test.ts');
const pluginTestFilePath = path.join(pluginTestsDir, `${name}.test.ts`);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f89dd93

Please sign in to comment.