mirror of
https://github.com/nextcloud/contacts.git
synced 2025-08-16 15:44:22 +00:00
perf: migrate to vite
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
27
jest.config.cjs
Normal file
27
jest.config.cjs
Normal file
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
const esModules = [
|
||||
'p-limit',
|
||||
].join('|')
|
||||
|
||||
module.exports = {
|
||||
preset: 'ts-jest',
|
||||
moduleFileExtensions: ['js', 'vue', 'ts'],
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{js,vue}',
|
||||
'!**/node_modules/**',
|
||||
],
|
||||
setupFilesAfterEnv: [
|
||||
'<rootDir>/tests/setup.js',
|
||||
],
|
||||
testEnvironment: 'jsdom',
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest',
|
||||
'^.+\\.js$': 'babel-jest',
|
||||
'^.+\\.vue$': '@vue/vue2-jest',
|
||||
'^.+\\.(css|styl|less|sass|scss|jpg|jpeg|png|svg|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|avif)$': 'jest-transform-stub',
|
||||
},
|
||||
transformIgnorePatterns: [`/node_modules/(?!${esModules})/.+\\.js$`],
|
||||
}
|
Reference in New Issue
Block a user