mirror of
https://github.com/standardnotes/app.git
synced 2026-01-16 23:01:30 +00:00
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Sync Repo / git-sync (push) Has been cancelled
Publish Packages / Build & Test (push) Has been cancelled
Publish Packages / Build Docker Image (push) Has been cancelled
Publish Packages / E2E Base Test Suite (push) Has been cancelled
Publish Packages / E2E Vaults Test Suite (push) Has been cancelled
Publish Packages / Build and publish Docker Image for Web App (push) Has been cancelled
Publish Packages / Publish to NPM (push) Has been cancelled
Publish Packages / Publish to Docker Hub (push) Has been cancelled
30 lines
830 B
JavaScript
30 lines
830 B
JavaScript
const pathsToModuleNameMapper = require('ts-jest').pathsToModuleNameMapper
|
|
const tsConfig = require('./tsconfig.json')
|
|
|
|
const pathsFromTsconfig = tsConfig.compilerOptions.paths
|
|
|
|
module.exports = {
|
|
restoreMocks: true,
|
|
clearMocks: true,
|
|
resetMocks: true,
|
|
moduleNameMapper: {
|
|
...pathsToModuleNameMapper(pathsFromTsconfig, {
|
|
prefix: '<rootDir>',
|
|
}),
|
|
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
'@standardnotes/toast': 'identity-obj-proxy',
|
|
'@standardnotes/styles': 'identity-obj-proxy',
|
|
'@simplewebauthn/browser': 'identity-obj-proxy',
|
|
},
|
|
globals: {
|
|
__WEB_VERSION__: '1.0.0',
|
|
},
|
|
transform: {
|
|
'^.+\\.(ts|tsx|js|jsx)?$': 'ts-jest',
|
|
'\\.svg$': 'svg-jest',
|
|
},
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!(react-error-boundary)/)',
|
|
],
|
|
testEnvironment: 'jsdom',
|
|
}
|