Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Dec 20, 2023
1 parent 22cc096 commit 00a44d4
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 193 deletions.
3 changes: 1 addition & 2 deletions packages/altair-app/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ module.exports = {
preset: 'jest-preset-angular',
resolver: '<rootDir>/jest.resolver.js',
collectCoverage: true,
globalSetup: '<rootDir>/jest/global-setup.ts',
// moduleNameMapper: pathsToModuleNameMapper(paths, { prefix: '<rootDir>' }),
setupFilesAfterEnv: ['<rootDir>/src/setup-jest.ts'],
moduleDirectories: ['node_modules', '<rootDir>/src'],
transformIgnorePatterns: [
'node_modules/(?!@angular|@firebase|@ngrx|@sentry|lodash-es|altair-graphql-core|angular-resizable-element|dexie|uuid|ngx-cookie-service|ngx-markdown|ky|color-name|json-schema-library|graphql-language-service|vscode-languageserver-types|cm6-graphql|ngx-toastr|@ngx-translate|lucide-angular|@ctrl/ngx-codemirror|ng-zorro-antd|@ant-design/icons-angular)',
'node_modules/(?!@angular|@firebase|@ngrx|@sentry|lodash-es|altair-graphql-core|angular-resizable-element|dexie|uuid|ngx-cookie-service|ngx-markdown|ky|color-name|json-schema-library|graphql-language-service|vscode-languageserver-types|cm6-graphql|ngx-toastr|@ngx-translate|lucide-angular|@ctrl/ngx-codemirror|ng-zorro-antd|@ant-design/icons-angular|ngx-pipes)',
],
};
9 changes: 0 additions & 9 deletions packages/altair-app/jest/global-setup.ts

This file was deleted.

86 changes: 0 additions & 86 deletions packages/altair-app/jest/ngcc-jest-processor.ts

This file was deleted.

5 changes: 3 additions & 2 deletions packages/altair-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"@playwright/test": "^1.31.2",
"@types/actioncable": "5.2.3",
"@types/chrome": "^0.0.209",
"@types/codemirror": "^5.60.15",
"@types/crypto-js": "^4.0.1",
"@types/electron": "^1.6.10",
"@types/file-saver": "^2.0.1",
Expand Down Expand Up @@ -152,7 +153,7 @@
"fake-indexeddb": "^4.0.1",
"jest": "29.7.0",
"jest-chrome": "^0.8.0",
"jest-preset-angular": "12.2.6",
"jest-preset-angular": "^13.1.4",
"karma-cli": "^2.0.0",
"ncp": "2.0.0",
"ng-mocks": "^14.12.1",
Expand Down Expand Up @@ -194,4 +195,4 @@
"test-single-run": "ng test --watch=false --code-coverage",
"test:watch": "jest --watch"
}
}
}
8 changes: 0 additions & 8 deletions packages/altair-app/src/setup-jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ Object.defineProperty(window, 'console', {
error: jest.fn(),
},
});
Object.defineProperty(document.body.style, 'transform', {
value: () => {
return {
enumerable: true,
configurable: true,
};
},
});

Object.defineProperty(window, 'DragEvent', {
value: class DragEvent {},
Expand Down
Loading

0 comments on commit 00a44d4

Please sign in to comment.