From df7acf3d225ec2801096808ee4e1967a0479b49a Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 2 Mar 2024 21:20:24 -0500 Subject: Ci updates (#757) * Add test:unit:options to CI * Add test:unit:options to full test * Change config targets * Add newline --- test/data/vitest.options.config.json | 2 +- test/data/vitest.write.config.json | 2 +- test/dictionary-data.write.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/data/vitest.options.config.json b/test/data/vitest.options.config.json index e2bca721..88c6b5ec 100644 --- a/test/data/vitest.options.config.json +++ b/test/data/vitest.options.config.json @@ -1,7 +1,7 @@ { "test": { "include": [ - "../**/options-util.test.js" + "test/options-util.test.js" ] } } diff --git a/test/data/vitest.write.config.json b/test/data/vitest.write.config.json index 7de11ae9..f3016e5a 100644 --- a/test/data/vitest.write.config.json +++ b/test/data/vitest.write.config.json @@ -1,7 +1,7 @@ { "test": { "include": [ - "../**/*.write.js" + "test/*.write.js" ] } } diff --git a/test/dictionary-data.write.js b/test/dictionary-data.write.js index b271da57..16cb8d88 100644 --- a/test/dictionary-data.write.js +++ b/test/dictionary-data.write.js @@ -28,7 +28,7 @@ import {createFindKanjiOptions, createFindTermsOptions} from './utilities/transl * @param {unknown} content */ function writeJson(fileName, content) { - writeFileSync(fileName, JSON.stringify(content, null, 2)); + writeFileSync(fileName, JSON.stringify(content, null, 2) + '\n'); } const dirname = path.dirname(fileURLToPath(import.meta.url)); -- cgit v1.2.3