Skip to content

Commit 253019d

Browse files
test: clean up tests missed in some previous PR (#524)
I thought I'd pushed these in a PR. Maybe not. But tests are failing without these changes.
1 parent 6934b0c commit 253019d

File tree

2 files changed

+72
-91
lines changed

2 files changed

+72
-91
lines changed

src/hydrate/steps/clearUnnecessaryFiles.test.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/hydrate/steps/finalizeDependencies.test.ts

Lines changed: 72 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,40 @@ describe("finalize", () => {
1717
expect(mockExecaCommand).toHaveBeenCalledWith(
1818
[
1919
"pnpm add",
20-
"@types/eslint",
21-
"@typescript-eslint/eslint-plugin",
22-
"@typescript-eslint/parser",
23-
"all-contributors-cli",
24-
"cspell",
25-
"eslint",
26-
"eslint-config-prettier",
27-
"eslint-plugin-deprecation",
28-
"eslint-plugin-eslint-comments",
29-
"eslint-plugin-import",
30-
"eslint-plugin-jsdoc",
31-
"eslint-plugin-jsonc",
32-
"eslint-plugin-markdown",
33-
"eslint-plugin-regexp",
34-
"eslint-plugin-simple-import-sort",
35-
"eslint-plugin-typescript-sort-keys",
36-
"eslint-plugin-yml",
37-
"husky",
38-
"jsonc-eslint-parser",
39-
"knip",
40-
"lint-staged",
41-
"markdownlint",
42-
"markdownlint-cli",
43-
"npm-package-json-lint",
44-
"npm-package-json-lint-config-default",
45-
"prettier",
46-
"prettier-plugin-packagejson",
47-
"sentences-per-line",
48-
"should-semantic-release",
49-
"typescript",
50-
"yaml-eslint-parser",
20+
"@types/eslint@latest",
21+
"@typescript-eslint/eslint-plugin@latest",
22+
"@typescript-eslint/parser@latest",
23+
"all-contributors-cli@latest",
24+
"cspell@latest",
25+
"eslint@latest",
26+
"eslint-config-prettier@latest",
27+
"eslint-plugin-deprecation@latest",
28+
"eslint-plugin-eslint-comments@latest",
29+
"eslint-plugin-import@latest",
30+
"eslint-plugin-jsdoc@latest",
31+
"eslint-plugin-jsonc@latest",
32+
"eslint-plugin-markdown@latest",
33+
"eslint-plugin-regexp@latest",
34+
"eslint-plugin-simple-import-sort@latest",
35+
"eslint-plugin-typescript-sort-keys@latest",
36+
"eslint-plugin-yml@latest",
37+
"husky@latest",
38+
"jsonc-eslint-parser@latest",
39+
"knip@latest",
40+
"lint-staged@latest",
41+
"markdownlint@latest",
42+
"markdownlint-cli@latest",
43+
"npm-package-json-lint@latest",
44+
"npm-package-json-lint-config-default@latest",
45+
"prettier@latest",
46+
"prettier-plugin-packagejson@latest",
47+
"sentences-per-line@latest",
48+
"should-semantic-release@latest",
49+
"typescript@latest",
50+
"yaml-eslint-parser@latest",
5151
"-D",
52-
].join(" ")
52+
].join(" "),
53+
{ stdio: "inherit" }
5354
);
5455
});
5556

@@ -59,45 +60,46 @@ describe("finalize", () => {
5960
expect(mockExecaCommand).toHaveBeenCalledWith(
6061
[
6162
"pnpm add",
62-
"@types/eslint",
63-
"@typescript-eslint/eslint-plugin",
64-
"@typescript-eslint/parser",
65-
"all-contributors-cli",
66-
"cspell",
67-
"eslint",
68-
"eslint-config-prettier",
69-
"eslint-plugin-deprecation",
70-
"eslint-plugin-eslint-comments",
71-
"eslint-plugin-import",
72-
"eslint-plugin-jsdoc",
73-
"eslint-plugin-jsonc",
74-
"eslint-plugin-markdown",
75-
"eslint-plugin-regexp",
76-
"eslint-plugin-simple-import-sort",
77-
"eslint-plugin-typescript-sort-keys",
78-
"eslint-plugin-yml",
79-
"husky",
80-
"jsonc-eslint-parser",
81-
"knip",
82-
"lint-staged",
83-
"markdownlint",
84-
"markdownlint-cli",
85-
"npm-package-json-lint",
86-
"npm-package-json-lint-config-default",
87-
"prettier",
88-
"prettier-plugin-packagejson",
89-
"sentences-per-line",
90-
"should-semantic-release",
91-
"typescript",
92-
"yaml-eslint-parser",
93-
"release-it",
94-
"@vitest/coverage-istanbul",
95-
"console-fail-test",
96-
"eslint-plugin-no-only-tests",
97-
"eslint-plugin-vitest",
98-
"vitest",
63+
"@types/eslint@latest",
64+
"@typescript-eslint/eslint-plugin@latest",
65+
"@typescript-eslint/parser@latest",
66+
"all-contributors-cli@latest",
67+
"cspell@latest",
68+
"eslint@latest",
69+
"eslint-config-prettier@latest",
70+
"eslint-plugin-deprecation@latest",
71+
"eslint-plugin-eslint-comments@latest",
72+
"eslint-plugin-import@latest",
73+
"eslint-plugin-jsdoc@latest",
74+
"eslint-plugin-jsonc@latest",
75+
"eslint-plugin-markdown@latest",
76+
"eslint-plugin-regexp@latest",
77+
"eslint-plugin-simple-import-sort@latest",
78+
"eslint-plugin-typescript-sort-keys@latest",
79+
"eslint-plugin-yml@latest",
80+
"husky@latest",
81+
"jsonc-eslint-parser@latest",
82+
"knip@latest",
83+
"lint-staged@latest",
84+
"markdownlint@latest",
85+
"markdownlint-cli@latest",
86+
"npm-package-json-lint@latest",
87+
"npm-package-json-lint-config-default@latest",
88+
"prettier@latest",
89+
"prettier-plugin-packagejson@latest",
90+
"sentences-per-line@latest",
91+
"should-semantic-release@latest",
92+
"typescript@latest",
93+
"yaml-eslint-parser@latest",
94+
"release-it@latest",
95+
"@vitest/coverage-istanbul@latest",
96+
"console-fail-test@latest",
97+
"eslint-plugin-no-only-tests@latest",
98+
"eslint-plugin-vitest@latest",
99+
"vitest@latest",
99100
"-D",
100-
].join(" ")
101+
].join(" "),
102+
{ stdio: "inherit" }
101103
);
102104
});
103105
});

0 commit comments

Comments
 (0)