Add performance tests base (#3141)

* Add basic bench tests

* dev
This commit is contained in:
Alexandr Garbuzov
2023-10-13 11:27:04 +02:00
committed by GitHub
parent 0fd1ea3ce9
commit 428e97bfcc
7 changed files with 357 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
export default {
// Jest-bench need its own test environment to function
testEnvironment: "jest-bench/environment",
testEnvironmentOptions: {
// still Jest-bench environment will run your environment if you specify it here
testEnvironment: "jest-environment-node",
testEnvironmentOptions: {
// specify any option for your environment
},
},
// always include "default" reporter along with Jest-bench reporter
// for error reporting
reporters: ["default", "jest-bench/reporter"],
// will pick up "*.bench.js" file.
testRegex: "(\\.bench)\\.(ts|tsx|js)$",
};