Skip to content

Commit

Permalink
Bootstrap e2e tests (#23)
Browse files Browse the repository at this point in the history
* Add basic e2e test

* Use pnpm workspace

* Move test to npmignore

* Test from root

* Fix faulty rebase

* Add test to CI action

* Fix monorepo stuff

* Relax test timeout a bit

* Add tsconfig

* Add fixture projects to workspace

* Can use workspace

* Another oops

* Delete .npmrc
  • Loading branch information
dan-lee committed Apr 16, 2023
1 parent d702223 commit 2a89522
Show file tree
Hide file tree
Showing 13 changed files with 930 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ jobs:

- name: Build
run: pnpm --filter @0no-co/graphqlsp run build

- name: Test
run: pnpm run test:e2e
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "rollup -c ./scripts/build.mjs",
"prepare": "husky install",
"dev": "pnpm --filter @0no-co/graphqlsp dev",
"launch-debug": "./scripts/launch-debug.sh"
"launch-debug": "./scripts/launch-debug.sh",
"test:e2e": "vitest run"
},
"prettier": {
"singleQuote": true,
Expand All @@ -23,11 +24,13 @@
"@changesets/get-github-info": "^0.5.2",
"@rollup/plugin-terser": "^0.4.1",
"@rollup/plugin-typescript": "^11.1.0",
"@types/node": "^18.15.11",
"dotenv": "^16.0.3",
"husky": "^8.0.3",
"lint-staged": "^13.2.1",
"prettier": "^2.8.7",
"rollup": "^3.20.2",
"typescript": "^5.0.0"
"typescript": "^5.0.0",
"vitest": "^0.30.1"
}
}
1 change: 1 addition & 0 deletions packages/graphqlsp/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
src
test
node_modules
scripts
example
Expand Down
Loading

0 comments on commit 2a89522

Please sign in to comment.