1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

[EC-648] Fix esm features in node testing environment (#4223)

* Add AST transformer to remove import.meta in tests
This commit is contained in:
Thomas Rittson
2023-01-12 13:23:14 +10:00
committed by GitHub
parent 4e0c26ddb8
commit 23ec317767
5 changed files with 42 additions and 6 deletions

View File

@@ -19,6 +19,9 @@ module.exports = {
// Makes tests run faster and reduces size/rate of leak, but loses typechecking on test code
// See https://bitwarden.atlassian.net/browse/EC-497 for more info
isolatedModules: true,
astTransformers: {
before: ["<rootDir>/../../libs/shared/es2020-transformer.ts"],
},
},
},
};