Testing performance improvements? I think so!
This commit is contained in:
parent
a2900c2c43
commit
a97c2b31ea
2
.gitignore
vendored
2
.gitignore
vendored
@ -11,8 +11,8 @@ project/Aki_Data/
|
|||||||
project/tmp/
|
project/tmp/
|
||||||
project/docs/
|
project/docs/
|
||||||
project/types/
|
project/types/
|
||||||
|
project/tests/__cache__/
|
||||||
project/tests/__coverage__/
|
project/tests/__coverage__/
|
||||||
project/__coverage__/
|
|
||||||
project/src/__coverage__/
|
project/src/__coverage__/
|
||||||
|
|
||||||
## visual studio
|
## visual studio
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
//Controllers
|
|
||||||
import "@tests/controllers/InsuranceController.test";
|
|
||||||
|
|
||||||
//Generators
|
|
||||||
import "@tests/generators/BotLevelGenerator.test";
|
|
||||||
import "@tests/generators/BotGenerator.test";
|
|
||||||
|
|
||||||
//Helpers
|
|
||||||
import "@tests/helpers/BotHelper.test";
|
|
||||||
import "@tests/helpers/HandbookHelper.test";
|
|
||||||
import "@tests/helpers/InRaidHelper.test";
|
|
||||||
import "@tests/helpers/ItemHelper.test";
|
|
||||||
|
|
||||||
//Services
|
|
||||||
import "@tests/services/ItemBaseClassService.test";
|
|
||||||
import "@tests/services/PaymentService.test";
|
|
||||||
import "@tests/services/PlayerService.test";
|
|
@ -8,8 +8,10 @@ export default defineConfig({
|
|||||||
api: 51204,
|
api: 51204,
|
||||||
reporters: ["default"],
|
reporters: ["default"],
|
||||||
root: "./",
|
root: "./",
|
||||||
include: ["tests/Setup.test.ts"],
|
include: ["**/*.{test,spec}.?(c|m)[jt]s?(x)"],
|
||||||
cache: false,
|
cache: {
|
||||||
|
dir: "./tests/__cache__"
|
||||||
|
},
|
||||||
environment: "./tests/CustomEnvironment.ts",
|
environment: "./tests/CustomEnvironment.ts",
|
||||||
globals: true,
|
globals: true,
|
||||||
coverage: {
|
coverage: {
|
||||||
@ -21,6 +23,13 @@ export default defineConfig({
|
|||||||
include: ["src"],
|
include: ["src"],
|
||||||
exclude: ["src/models/**", "tests/**"]
|
exclude: ["src/models/**", "tests/**"]
|
||||||
},
|
},
|
||||||
|
pool: "threads",
|
||||||
|
poolOptions: {
|
||||||
|
threads: {
|
||||||
|
singleThread: true,
|
||||||
|
isolate: false
|
||||||
|
}
|
||||||
|
},
|
||||||
alias: {
|
alias: {
|
||||||
"@spt-aki": path.resolve(__dirname, "src"),
|
"@spt-aki": path.resolve(__dirname, "src"),
|
||||||
"@tests": path.resolve(__dirname, "tests")
|
"@tests": path.resolve(__dirname, "tests")
|
||||||
|
Loading…
Reference in New Issue
Block a user