Add performance tests base (#3141)

* Add basic bench tests

* dev
This commit is contained in:
Alexandr Garbuzov authored and GitHub committed 2023-10-13 11:27:04 +02:00
1 parent 0fd1ea3ce9
commit 428e97bfcc
7 files changed
+357 -1

No files matched your search

+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)$",
};