Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixes issue with tests not being found from template #3605

Merged
merged 7 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/extending-typespec/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Alternatively, you can add these as scripts in your `package.json` to make them
"clean": "rimraf ./dist ./temp",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"test": "node --test ./dist/test"
"test": "node --test ./dist/test/**/*.test.js"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"build": "tsc",
"watch": "tsc --watch",
"test": "node --test ./dist/test/",
"test": "node --test ./dist/test/**/*.test.js",
"lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
"lint:fix": "eslint . --report-unused-disable-directives --fix",
"format": "prettier . --write",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build": "tsc && npm run build:tsp",
"watch": "tsc --watch",
"build:tsp": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
"test": "node --test ./dist/test/",
"test": "node --test ./dist/test/**/*.test.js",
"lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
"lint:fix": "eslint . --report-unused-disable-directives --fix",
"format": "prettier . --write",
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler/templates/emitter-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"scripts": {
"build": "tsc",
"watch": "tsc --watch",
"test": "node --test ./dist/test/",
"test": "node --test ./dist/test/**/*.test.js",
"lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
"lint:fix": "eslint . --report-unused-disable-directives --fix",
"format": "prettier . --write",
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler/templates/library-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build": "tsc && npm run build:tsp",
"watch": "tsc --watch",
"build:tsp": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit",
"test": "node --test ./dist/test/",
"test": "node --test ./dist/test/**/*.test.js",
"lint": "eslint src/ test/ --report-unused-disable-directives --max-warnings=0",
"lint:fix": "eslint . --report-unused-disable-directives --fix",
"format": "prettier . --write",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ Alternatively, you can add these as scripts in your `package.json` to make them
"clean": "rimraf ./dist ./temp",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"test": "node --test ./dist/test"
"test": "node --test ./dist/test/**/*.test.js",
}
```

Expand Down
Loading