Skip to content

Commit

Permalink
Tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Mar 4, 2024
1 parent 33ec5d1 commit 356a6f3
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# compiled output
dist/
declarations/
tmp/

# dependencies
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
"start": "concurrently 'npm:start:*'",
"start:js": "rollup --config --watch --no-watch.clearScreen",
"start:types": "tsc --declaration --watch",
"test": "vitest --run",
"test": "cd tests && pnpm test",
"test:types": "tsc --noEmit --project ./tests/type-tests/tsconfig.json",
"test:watch": "vitest",
"test:watch": "cd tests && pnpm test:watch",
"prepack": "rollup --config"
},
"dependencies": {
Expand Down Expand Up @@ -70,7 +70,6 @@
"publint": "^0.2.7",
"rollup": "^4.9.1",
"rollup-plugin-copy": "^3.5.0",
"vitest": "^0.18.0",
"typescript": "^5.3.3"
},
"publishConfig": {
Expand Down
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
packages:
- 'ember-string'
- 'test-app'
- '.'
- 'tests'
19 changes: 19 additions & 0 deletions tests/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@ember/string-tests",
"private": true,
"scripts": {
"test": "vitest --run",
"test:watch": "vitest"
},
"dependencies": {
"@ember/string": "*"
},
"devDependencies": {
"@ember/string": "workspace:*",
"typescript": "4.7.4",
"vitest": "^0.18.0"
},
"volta": {
"extends": "../package.json"
}
}
2 changes: 1 addition & 1 deletion vitest.config.ts → tests/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const extensions = '{js,mjs,cjs,ts,mts,cts,jsx,tsx}';
export default defineConfig({
test: {
// relative to the directory where this config is located
include: [`tests/**/*test.${extensions}`],
include: [`**/*test.${extensions}`],
},
});

0 comments on commit 356a6f3

Please sign in to comment.