Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit428e97b

Browse files
authored
Add performance tests base (anuraghazra#3141)
* Add basic bench tests* dev
1 parent0fd1ea3 commit428e97b

File tree

7 files changed

+357
-1
lines changed

7 files changed

+357
-1
lines changed

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
run:|
3636
npm run lint
3737
38+
-name:Run bench tests
39+
run:|
40+
npm run bench
41+
3842
-name:Run Prettier
3943
run:|
4044
npm run format:check

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules
44
*.lock
55
.idea/
66
coverage
7+
benchmarks
78
vercel_token
89

910
# IDE

‎jest.bench.config.js‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
exportdefault{
2+
// Jest-bench need its own test environment to function
3+
testEnvironment:"jest-bench/environment",
4+
testEnvironmentOptions:{
5+
// still Jest-bench environment will run your environment if you specify it here
6+
testEnvironment:"jest-environment-node",
7+
testEnvironmentOptions:{
8+
// specify any option for your environment
9+
},
10+
},
11+
// always include "default" reporter along with Jest-bench reporter
12+
// for error reporting
13+
reporters:["default","jest-bench/reporter"],
14+
// will pick up "*.bench.js" file.
15+
testRegex:"(\\.bench)\\.(ts|tsx|js)$",
16+
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp