mirror of
https://github.com/bitwarden/browser
synced 2026-02-02 09:43:29 +00:00
Add play.spec.ts as playwright test plaths. Also establishes .type.spec.ts as a specially ignored path everywhere. Finally, we no longer need the ast transformer since we don't use import.meta statements anymore. (this was also two years ago, it's possible this just works now).
26 lines
749 B
JavaScript
26 lines
749 B
JavaScript
const { pathsToModuleNameMapper } = require("ts-jest");
|
|
const sharedConfig = require("../../../shared/jest.config.angular");
|
|
|
|
const { compilerOptions } = require("../../../../tsconfig.base");
|
|
|
|
const { createCjsPreset } = require("jest-preset-angular/presets");
|
|
|
|
// FIXME: Should use the shared config!
|
|
const presetConfig = createCjsPreset({
|
|
tsconfig: "<rootDir>/tsconfig.spec.json",
|
|
diagnostics: {
|
|
ignoreCodes: ["TS151001"],
|
|
},
|
|
});
|
|
|
|
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
...sharedConfig,
|
|
...presetConfig,
|
|
displayName: "tools/send-ui tests",
|
|
setupFilesAfterEnv: ["<rootDir>/test.setup.ts"],
|
|
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
|
|
prefix: "<rootDir>/../../../../",
|
|
}),
|
|
};
|