Skip to content

Commit 26f9ec7

Browse files
chore: Simplify playgrounds projects (#2113)
* Good working case of mono-repo for playgrounds * Fix tsc, use script failing fast * Update the docs * Ensure jasmine is latest * Code review * Update playgrounds/mocha/package.json Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update playgrounds/package.json Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 820f139 commit 26f9ec7

15 files changed

Lines changed: 690 additions & 16558 deletions

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
"checks:all": "npm run build && npm run compile && npm run tsc:root-types && npm run test && npm run ts",
7474
"watch": "npm run compile -- --watch",
7575
"prepare": "husky install",
76-
"playgrounds:setup": "for dir in playgrounds/*/; do cd \"$dir\" && npm install && cd ../..; done",
77-
"playgrounds:checks:all": "for dir in playgrounds/*/; do cd \"$dir\" && npm run checks:all && cd ../..; done",
78-
"playgrounds:snapshots:update": "cd playgrounds/mocha && npm run snapshots:update && cd ../jest && npm run snapshots:update && cd ../.."
76+
"playgrounds:setup": "cd playgrounds && npm run setup",
77+
"playgrounds:checks:all": "cd playgrounds && npm run checks:all",
78+
"playgrounds:snapshots:update": "cd playgrounds && npm run snapshots:update"
7979
},
8080
"dependencies": {
8181
"@vitest/snapshot": "^4.1.7",

playgrounds/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# expect-webdriverio Playgrounds
2+
3+
Workspaces for testing expect-webdriverio with Jasmine, Jest, and Mocha.
4+
5+
## Setup
6+
7+
From the project root, run the following commands:
8+
```sh
9+
npm install
10+
npm run playgrounds:setup
11+
npm run playgrounds:checks:all
12+
```
13+
14+
To run a single project individually (for example, Mocha):
15+
```sh
16+
cd playgrounds/mocha
17+
npm run checks:all
18+
```
19+
20+
## Visual Snapshots
21+
22+
Visual tests can occasionally fail if the website's layout or visuals change.
23+
You can update the expected snapshots by running:
24+
```sh
25+
npm run playgrounds:snapshots:update
26+
```

playgrounds/jasmine/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)