mirror of https://git.tuxpa.in/a/code-server.git
feat: add cssStub to jest
This commit is contained in:
parent
4f1f2c7171
commit
28b440a4ba
|
@ -153,6 +153,9 @@
|
|||
"<rootDir>/release-npm-package",
|
||||
"<rootDir>/release-gcp",
|
||||
"<rootDir>/release-images"
|
||||
]
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"^.+\\.(css|less)$": "<rootDir>/test/cssStub.ts"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
// Note: this is needed for the register.test.ts
|
||||
// This is because inside src/browser/register.ts
|
||||
// we import CSS files, which Jest can't handle unless we tell it how to
|
||||
// See: https://stackoverflow.com/a/39434579/3015595
|
||||
module.exports = {}
|
Loading…
Reference in New Issue