aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2024-02-03 12:12:20 +0700
committerGitHub <noreply@github.com>2024-02-03 05:12:20 +0000
commit3fc7362fe189b73d9cb9a0ff3338d755ca7e7003 (patch)
tree4c5bfb646b1b4603e7bf7273b98ad292cfe4a7ca /test
parent16423a1bc89d8a0e6439c8d3f7441fd3d36e85df (diff)
Add vitest benchmark (#583)
* add basic benches * add package.json script * fix header * add codspeed plugin * add benchmark GitHub action * add env * revert change * merge upstream * update names
Diffstat (limited to 'test')
-rw-r--r--test/data/json.json3
-rw-r--r--test/json.test.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/test/data/json.json b/test/data/json.json
index fe7df57d..1f664587 100644
--- a/test/data/json.json
+++ b/test/data/json.json
@@ -23,6 +23,7 @@
{"path": "test/data/dictionaries/invalid-dictionary6/index.json", "ignore": true},
{"path": "test/jsconfig.json", "ignore": true},
{"path": "test/data/vitest.write.config.json", "ignore": true},
+ {"path": "benches/jsconfig.json", "ignore": true},
{
"path": "dev/data/manifest-variants.json",
@@ -184,4 +185,4 @@
"schema": "ext/data/schemas/dictionary-term-meta-bank-v3-schema.json"
}
]
-} \ No newline at end of file
+}
diff --git a/test/json.test.js b/test/json.test.js
index 54c33c34..0689913a 100644
--- a/test/json.test.js
+++ b/test/json.test.js
@@ -36,6 +36,7 @@ function getJsconfigPath(jsconfigType) {
switch (jsconfigType) {
case 'dev': path = '../dev/jsconfig.json'; break;
case 'test': path = '../test/jsconfig.json'; break;
+ case 'benches': path = '../benches/jsconfig.json'; break;
default: path = '../jsconfig.json'; break;
}
return join(dirname, path);