summaryrefslogtreecommitdiff
path: root/packages/backend/jest.config.unit.cjs
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2024-01-08 17:43:52 +0900
committerGitHub <noreply@github.com>2024-01-08 17:43:52 +0900
commit35ec41fc1eddd7ebf5552e6f0bceebfbfa077a21 (patch)
treed3bb804799399798c5c8d1d4654932c2d25d868e /packages/backend/jest.config.unit.cjs
parentfix(backend): `drive/files/update`におけるファイル名のバリデー... (diff)
downloadmisskey-35ec41fc1eddd7ebf5552e6f0bceebfbfa077a21.tar.gz
misskey-35ec41fc1eddd7ebf5552e6f0bceebfbfa077a21.tar.bz2
misskey-35ec41fc1eddd7ebf5552e6f0bceebfbfa077a21.zip
enhance(backend): テストの高速化 (#12939)
* enhance(backend): テストの高速化 * add ls * 自動的にマージされるようなので不要 * 起動方法を揃える * fix test
Diffstat (limited to 'packages/backend/jest.config.unit.cjs')
-rw-r--r--packages/backend/jest.config.unit.cjs14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/backend/jest.config.unit.cjs b/packages/backend/jest.config.unit.cjs
new file mode 100644
index 0000000000..aa5992936b
--- /dev/null
+++ b/packages/backend/jest.config.unit.cjs
@@ -0,0 +1,14 @@
+/*
+* For a detailed explanation regarding each configuration property and type check, visit:
+* https://jestjs.io/docs/en/configuration.html
+*/
+
+const base = require('./jest.config.cjs')
+
+module.exports = {
+ ...base,
+ testMatch: [
+ "<rootDir>/test/unit/**/*.ts",
+ "<rootDir>/src/**/*.test.ts",
+ ],
+};