github-readme-stats/jest.bench.config.js
Alexandr Garbuzov 428e97bfcc
Add performance tests base (#3141)
* Add basic bench tests

* dev
2023-10-13 11:27:04 +02:00

17 lines
596 B
JavaScript

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