eCourt-Doc-Edit/addin/jest.config.js

14 lines
565 B
JavaScript
Raw Normal View History

2026-08-19 21:35:07 +07:00
/* eslint-disable no-undef */
/**
* Unit tests ของ services layer — แปลง TS ด้วย babel-jest (ใช้ babel.config.json เดิม
* ที่มี @babel/preset-typescript อยู่แล้ว — type-check ทำที่ npm run build ผ่าน ts-loader)
* environment = jsdom เพราะ services ใช้ DOM API (DOMParser, Blob, btoa, URLSearchParams)
*/
module.exports = {
testEnvironment: "jsdom",
roots: ["<rootDir>/src"],
setupFiles: ["<rootDir>/src/test/setup.ts"],
testMatch: ["**/*.test.ts"],
};