Skip to content

Commit b47bd6e

Browse files
Merge pull request #1125 from remarkablemark/refactor/test
refactor(test): rename `test` directory to `__tests__`
2 parents 0ce7cca + 58f1920 commit b47bd6e

17 files changed

+7
-5
lines changed
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.

benchmark/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Benchmark from 'benchmark';
2-
import { html } from '../test/data';
2+
3+
import { html } from '../__tests__/data';
34
import parse from '../src';
45

56
const suite = new Benchmark.Suite();

jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const config: Config = {
1111
},
1212
},
1313
preset: 'ts-jest',
14+
testMatch: ['**/__tests__/**/*.test.ts?(x)'],
1415
};
1516

1617
export default config;

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
"postpublish": "pinst --enable",
3232
"prepublishOnly": "pinst --disable && npm run lint && npm run test:ci && npm run clean && npm run build",
3333
"size-limit": "size-limit",
34-
"test": "jest --testPathIgnorePatterns test/integration",
34+
"test": "jest --testPathIgnorePatterns __tests__/integration",
3535
"test:ci": "CI=true npm test -- --ci --colors",
36-
"test:esm": "npm run build:cjs && node --test test/esm",
37-
"test:integration": "npm run build && jest --coverage=false --env=jsdom test/integration",
36+
"test:esm": "npm run build:cjs && node --test __tests__/esm",
37+
"test:integration": "npm run build && jest --coverage=false --env=jsdom __tests__/integration",
3838
"test:watch": "npm test -- --watch"
3939
},
4040
"repository": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"outDir": "lib",
1212
"jsx": "react-jsx"
1313
},
14-
"include": ["benchmark", "src", "test"]
14+
"include": ["__tests__", "benchmark", "src"]
1515
}

0 commit comments

Comments
 (0)