Skip to content

Commit 356a6f3

Browse files
committed
Tests pass
1 parent 33ec5d1 commit 356a6f3

6 files changed

+40
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# compiled output
44
dist/
5+
declarations/
56
tmp/
67

78
# dependencies

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"start": "concurrently 'npm:start:*'",
3939
"start:js": "rollup --config --watch --no-watch.clearScreen",
4040
"start:types": "tsc --declaration --watch",
41-
"test": "vitest --run",
41+
"test": "cd tests && pnpm test",
4242
"test:types": "tsc --noEmit --project ./tests/type-tests/tsconfig.json",
43-
"test:watch": "vitest",
43+
"test:watch": "cd tests && pnpm test:watch",
4444
"prepack": "rollup --config"
4545
},
4646
"dependencies": {
@@ -70,7 +70,6 @@
7070
"publint": "^0.2.7",
7171
"rollup": "^4.9.1",
7272
"rollup-plugin-copy": "^3.5.0",
73-
"vitest": "^0.18.0",
7473
"typescript": "^5.3.3"
7574
},
7675
"publishConfig": {

pnpm-lock.yaml

+16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
packages:
2-
- 'ember-string'
3-
- 'test-app'
2+
- '.'
43
- 'tests'

tests/package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "@ember/string-tests",
3+
"private": true,
4+
"scripts": {
5+
"test": "vitest --run",
6+
"test:watch": "vitest"
7+
},
8+
"dependencies": {
9+
"@ember/string": "*"
10+
},
11+
"devDependencies": {
12+
"@ember/string": "workspace:*",
13+
"typescript": "4.7.4",
14+
"vitest": "^0.18.0"
15+
},
16+
"volta": {
17+
"extends": "../package.json"
18+
}
19+
}

vitest.config.ts tests/vitest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const extensions = '{js,mjs,cjs,ts,mts,cts,jsx,tsx}';
55
export default defineConfig({
66
test: {
77
// relative to the directory where this config is located
8-
include: [`tests/**/*test.${extensions}`],
8+
include: [`**/*test.${extensions}`],
99
},
1010
});

0 commit comments

Comments
 (0)