Merge pull request #49 from atk/fix-ts-vitest-installation

fix: ts-vitest-installation
This commit is contained in:
Alexandre
2022-08-27 11:15:11 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -5,7 +5,10 @@ const typesPath = path.resolve('node_modules', '@types', 'testing-library__jest-
const refMatcher = /[\r\n]+\/\/\/ <reference types="jest" \/>/; const refMatcher = /[\r\n]+\/\/\/ <reference types="jest" \/>/;
fs.readFile(typesPath, 'utf8', (err, data) => { fs.readFile(typesPath, 'utf8', (err, data) => {
if (err) throw err; if (err) {
console.warn('\x1b[33m⚠️ this template expects @types/testing-library__jest-dom to be installed, but it is missing.\n Please run:\x1b[0m\n\npnpm i --save-dev @types/testing-library__jest-dom\n');
return;
}
fs.writeFile( fs.writeFile(
typesPath, typesPath,
+1
View File
@@ -13,6 +13,7 @@
}, },
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/testing-library__jest-dom": "^5.14.3",
"@testing-library/jest-dom": "^5.16.5", "@testing-library/jest-dom": "^5.16.5",
"jsdom": "^20.0.0", "jsdom": "^20.0.0",
"solid-testing-library": "^0.3.0", "solid-testing-library": "^0.3.0",