Skip to content

Commit 0ed826a

Browse files
committed
test: simple test code
1 parent 8298ba6 commit 0ed826a

File tree

6 files changed

+37
-2
lines changed

6 files changed

+37
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
node_modules
3+
/test-results/

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
"repository": "touk/federated-types.git",
4040
"scripts": {
4141
"semantic-release": "semantic-release",
42-
"test": "echo \"Error: no test specified\" && exit 0"
43-
}
42+
"test": "npm run make-types -workspaces --if-present"
43+
},
44+
"workspaces": [
45+
"./packages/*"
46+
]
4447
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "testTest",
3+
"exposes": {
4+
"./test": "./src/test"
5+
}
6+
}

packages/test/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test-test",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"make-types": "../../cli.js --outputDir ../../test-results"
7+
}
8+
}

packages/test/src/test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
aaa: "aaa",
3+
bbb: 123,
4+
};

0 commit comments

Comments
 (0)