瀏覽代碼

test: jest config file can be js

Jonas Gloning 2 年之前
父節點
當前提交
396fb81813
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      jest.config.js

+ 2 - 3
jest.config.ts → jest.config.js

@@ -1,6 +1,5 @@
-import type { Config } from "jest";
-
-const config: Config = {
+/** @type {import('jest').Config} */
+const config = {
   transform: {
     "^.+\\.(t|j)sx?$": "@swc/jest",
   },