mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
80dffec4e7
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai> Co-authored-by: Ran Shemtov <ran@copilotkit.ai> Co-authored-by: Brandon McConnell <brandon@dreamthinkbuild.com> Co-authored-by: Mike Ryan <mike.ryan52@gmail.com> Co-authored-by: Markus Ecker <markus.ecker@gmail.com>
26 lines
668 B
JavaScript
26 lines
668 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
module.exports = {
|
|
preset: "ts-jest",
|
|
testEnvironment: "jsdom",
|
|
testMatch: [
|
|
"<rootDir>/src/**/__tests__/**/*.(ts|tsx)",
|
|
"<rootDir>/src/**/*.(test|spec).(ts|tsx)",
|
|
],
|
|
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
|
|
moduleNameMapper: {
|
|
"^@/(.*)$": "<rootDir>/src/$1",
|
|
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
|
|
},
|
|
transformIgnorePatterns: [
|
|
"node_modules/(?!(react-markdown|streamdown|@copilotkitnext)/)",
|
|
],
|
|
transform: {
|
|
"^.+\\.(ts|tsx)$": "ts-jest",
|
|
"^.+\\.(js|jsx|mjs)$": ["ts-jest", {
|
|
tsconfig: {
|
|
allowJs: true,
|
|
},
|
|
}],
|
|
},
|
|
};
|