/* 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: ["/src"], setupFiles: ["/src/test/setup.ts"], testMatch: ["**/*.test.ts"], };