aboutsummaryrefslogtreecommitdiffstats
path: root/jest.config.ts
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-06-11 00:23:59 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-06-11 15:45:22 +0200
commit8fc828e0e2cdea9b9ba822a344bc34bf707711ee (patch)
treef3fb88dac202dbbbf75d682d1fc95118f282a5e3 /jest.config.ts
parent53324821be9af80f9269454dfcbd4066369f1ea4 (diff)
downloadnextcloud-server-8fc828e0e2cdea9b9ba822a344bc34bf707711ee.tar.gz
nextcloud-server-8fc828e0e2cdea9b9ba822a344bc34bf707711ee.zip
fix(files): Adjust babel module resolution
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'jest.config.ts')
-rw-r--r--jest.config.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/jest.config.ts b/jest.config.ts
index 173e541ed70..54b7ee1fd35 100644
--- a/jest.config.ts
+++ b/jest.config.ts
@@ -9,6 +9,7 @@ const ignorePatterns = [
'@buttercup/fetch',
'@juliushaertl',
'@mdi/svg',
+ '@nextcloud/files',
'@nextcloud/upload',
'@nextcloud/vue',
'ansi-regex',
@@ -16,6 +17,7 @@ const ignorePatterns = [
'char-regex',
'hot-patcher',
'is-svg',
+ 'layerr',
'mime',
'p-cancelable',
'p-limit',
@@ -26,6 +28,7 @@ const ignorePatterns = [
'strip-ansi',
'tributejs',
'unist-.+',
+ 'url-join',
'vue-material-design-icons',
'webdav',
'yocto-queue',
@@ -49,7 +52,7 @@ const config: Config = {
transform: {
// process `*.js` files with `babel-jest`
- '^.+\\.js$': 'babel-jest',
+ '^.+\\.c?js$': 'babel-jest',
'^.+\\.vue$': '@vue/vue2-jest',
'^.+\\.ts$': ['ts-jest', {
// @see https://github.com/kulshekhar/ts-jest/issues/4081
@@ -65,6 +68,7 @@ const config: Config = {
'^.+\\.svg(\\?raw)?$': '<rootDir>/__mocks__/svg.js',
'\\.s?css$': '<rootDir>/__mocks__/css.js',
},
+
modulePathIgnorePatterns: [
'<rootDir>/apps2/',
'<rootDir>/apps-extra/',