Testing performance improvements? I think so!

This commit is contained in:
Refringe 2023-11-07 15:42:32 -05:00
parent a2900c2c43
commit a97c2b31ea
No known key found for this signature in database
GPG Key ID: 64E03E5F892C6F9E
3 changed files with 13 additions and 21 deletions

2
.gitignore vendored
View File

@ -11,8 +11,8 @@ project/Aki_Data/
project/tmp/
project/docs/
project/types/
project/tests/__cache__/
project/tests/__coverage__/
project/__coverage__/
project/src/__coverage__/
## visual studio

View File

@ -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";

View File

@ -8,8 +8,10 @@ export default defineConfig({
api: 51204,
reporters: ["default"],
root: "./",
include: ["tests/Setup.test.ts"],
cache: false,
include: ["**/*.{test,spec}.?(c|m)[jt]s?(x)"],
cache: {
dir: "./tests/__cache__"
},
environment: "./tests/CustomEnvironment.ts",
globals: true,
coverage: {
@ -21,6 +23,13 @@ export default defineConfig({
include: ["src"],
exclude: ["src/models/**", "tests/**"]
},
pool: "threads",
poolOptions: {
threads: {
singleThread: true,
isolate: false
}
},
alias: {
"@spt-aki": path.resolve(__dirname, "src"),
"@tests": path.resolve(__dirname, "tests")