databag/net/web/jest.config.js
Lucian I. Last 71c65efa20
Typescript (#92)
* Add ignore dsstore node_modules

* Rename to typescript

rnr -r '(.*)\.js$' '$1.ts' ./src ./test
rnr -rf '(.*)\.jsx$' '$1.tsx' ./src ./test

* Remove package lock

* Fix extension of tsx at context

* init typescript

* .

* Compiles, moved to vite

* lint new files

* check dashboard

* Add dist to ignore file
2024-04-24 13:26:55 -07:00

13 lines
424 B
JavaScript

/** @type {import('ts-jest').JestConfigWithTsJest} */
export default {
preset: 'ts-jest',
testEnvironment: 'jsdom',
modulePaths: ['<rootDir>/src/'],
testMatch: ['**/test/**'],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/mock/fileMock.js',
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
// "(.*)": "<rootDir>/src/$1",
},
};