cli: update package role environment mapping in jest config

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-24 12:59:49 +01:00
parent 231d24d5aa
commit af67adafed
+5 -5
View File
@@ -39,18 +39,18 @@ const transformIgnorePattern = [
// Provides additional config that's based on the role of the target package
function getRoleConfig(role) {
switch (role) {
case 'app':
case 'frontend':
case 'web-library':
case 'common-library':
case 'plugin-frontend':
case 'plugin-frontend-module':
case 'frontend-plugin':
case 'frontend-plugin-module':
default:
return { testEnvironment: 'jsdom' };
case 'cli':
case 'backend':
case 'node-library':
case 'plugin-backend':
case 'plugin-backend-module':
case 'backend-plugin':
case 'backend-plugin-module':
return { testEnvironment: 'node' };
}
}