-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixes issue with tests not being found from template (#3605)
fix [#3647](#3647) With node 22 the --test needs a glob to find files to test. As the docs a written the tests don't run or pass. This fixes it for me. --------- Co-authored-by: Timothee Guerin <tiguerin@microsoft.com>
- Loading branch information
1 parent
a38126c
commit 245e4e6
Showing
12 changed files
with
39 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
changeKind: fix | ||
packages: | ||
- "@typespec/compiler" | ||
--- | ||
|
||
Fix templates initialized on node 22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
packages/compiler/templates/__snapshots__/emitter-ts/.eslintrc.yml
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
packages/compiler/templates/__snapshots__/emitter-ts/eslint.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// @ts-check | ||
import eslint from "@eslint/js"; | ||
import tsEslint from "typescript-eslint"; | ||
|
||
export default tsEslint.config( | ||
{ | ||
ignores: ["**/dist/**/*", "**/.temp/**/*"], | ||
}, | ||
eslint.configs.recommended, | ||
...tsEslint.configs.recommended | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
packages/compiler/templates/__snapshots__/library-ts/.eslintrc.yml
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
packages/compiler/templates/__snapshots__/library-ts/eslint.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// @ts-check | ||
import eslint from "@eslint/js"; | ||
import tsEslint from "typescript-eslint"; | ||
|
||
export default tsEslint.config( | ||
{ | ||
ignores: ["**/dist/**/*", "**/.temp/**/*"], | ||
}, | ||
eslint.configs.recommended, | ||
...tsEslint.configs.recommended | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters