From 3fc7362fe189b73d9cb9a0ff3338d755ca7e7003 Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Sat, 3 Feb 2024 12:12:20 +0700 Subject: 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 --- test/data/json.json | 3 ++- test/json.test.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'test') 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); -- cgit v1.2.3