diff --git a/air-quality-ui/jest.config.ts b/air-quality-ui/jest.config.ts index 0925736f..52d9ffa2 100644 --- a/air-quality-ui/jest.config.ts +++ b/air-quality-ui/jest.config.ts @@ -31,7 +31,7 @@ export default { moduleNameMapper: { '\\.(gif|ttf|eot|svg|png)$': '/test/__ mocks __/fileMock.js', '\\.(css|less)$': 'identity-obj-proxy', - '\\.glsl$': '/test/__mocks__/glslMock.js', + "^.+.(vert|frag|glsl)$": "jest-transform-stub" }, testPathIgnorePatterns: ['/node_modules/', '/system_tests/'], setupFiles: ['./jest.setup.ts'], diff --git a/air-quality-ui/package-lock.json b/air-quality-ui/package-lock.json index fdffd1cf..46eb91f9 100644 --- a/air-quality-ui/package-lock.json +++ b/air-quality-ui/package-lock.json @@ -54,6 +54,7 @@ "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", + "jest-transform-stub": "^2.0.0", "r3f-perf": "^7.2.1", "ts-jest": "^29.1.4", "ts-jest-mock-import-meta": "^1.2.0", @@ -8918,6 +8919,12 @@ "node": ">=8" } }, + "node_modules/jest-transform-stub": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz", + "integrity": "sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg==", + "dev": true + }, "node_modules/jest-util": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", @@ -18746,6 +18753,12 @@ } } }, + "jest-transform-stub": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz", + "integrity": "sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg==", + "dev": true + }, "jest-util": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", diff --git a/air-quality-ui/package.json b/air-quality-ui/package.json index 0179a306..f15fe6bc 100644 --- a/air-quality-ui/package.json +++ b/air-quality-ui/package.json @@ -60,6 +60,7 @@ "identity-obj-proxy": "^3.0.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", + "jest-transform-stub": "^2.0.0", "r3f-perf": "^7.2.1", "ts-jest": "^29.1.4", "ts-jest-mock-import-meta": "^1.2.0",