WIP: Jest und Cypress Test
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
module.exports = {
|
||||
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
|
||||
testEnvironment: "jest-environment-jsdom",
|
||||
testEnvironment: "jsdom",
|
||||
reporters: ["default", ["jest-junit", { outputDirectory: "./test-results/junit", outputName: "results.xml" }]],
|
||||
testPathIgnorePatterns: ["<rootDir>/.next/", "<rootDir>/node_modules/"],
|
||||
transform: {
|
||||
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest",
|
||||
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest", // Unterstützt JS/TS/TSX
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
"node_modules/(?!(leaflet|leaflet.smooth_marker_bouncing)/)", // Leaflet ausgenommen
|
||||
],
|
||||
|
||||
moduleNameMapper: {
|
||||
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
|
||||
"\\.(css|less|scss|sass)$": "identity-obj-proxy", // Für CSS-Module-Mocking
|
||||
"^leaflet$": "<rootDir>/__mocks__/leaflet.js", // Leaflet Mock hinzufügen
|
||||
"^leaflet.smooth_marker_bouncing$": "<rootDir>/__mocks__/leaflet.smooth_marker_bouncing.js", // Smooth Marker Mock
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user