Skip to content

Commit

Permalink
update setup
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jun 12, 2023
1 parent e9d5d52 commit 8cb10cd
Show file tree
Hide file tree
Showing 18 changed files with 19,228 additions and 25,437 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"memory": "8gb",
"storage": "32gb"
},
"postCreateCommand": "npm install && npm run setup-full",
"postCreateCommand": "npm install && npm run setup",
"waitFor": "postCreateCommand",
"postAttachCommand": {
"WebdriverIO Development Environment": "npm run watch",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: npm ci
- name: Release
run: |
npm run setup-full
npm run setup
npm run generate:typings
npx lerna publish ${{github.event.inputs.releaseType}} --exact --yes --dist-tag ${{github.event.inputs.distTag}}
npm run pushReleaseTag
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
DETECT_CHROMEDRIVER_VERSION: true
- name: Bootstrap Packages
run: npm run setup-full
run: npm run setup
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
- name: Dependency Check
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
env:
DETECT_CHROMEDRIVER_VERSION: true
- name: Bootstrap Packages
run: npm run setup-full
run: npm run setup
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
- name: Lint / Typings / Unit / Smoke / Component Tests
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
env:
DETECT_CHROMEDRIVER_VERSION: true
- name: Bootstrap Packages
run: npm run setup-full
run: npm run setup
env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
- name: E2E Protocol Tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ tests/.retry_succeeded
website/docs/Contribute.md
website/community/Resources.md
scripts/bidi/cddl
browserstack.err
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks:
- name: Setup WebdriverIO Development Environment
init: |
npm install
npm run setup-full
npm run setup
gp sync-done installation
command: npm run watch
- name: Welcome Bash
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ You can immediately start working on the code using [a pre-setup Gitpod environm

```sh
$ npm install
$ npm run setup-full
$ npm run setup
```

The second command does two things:
Expand Down
5 changes: 1 addition & 4 deletions __mocks__/browserstack-local.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { vi } from 'vitest'

const Browserstack = {} as any

export const mockIsRunning = vi.fn().mockImplementation(() => true)
export const mockStart = vi.fn().mockImplementation((options, cb) => cb(null, null))
export const mockStop = vi.fn().mockImplementation((cb) => cb(null))
Expand All @@ -12,9 +10,8 @@ export const mockLocal = vi.fn().mockImplementation(function (this: any) {
this.stop = mockStop
})

Browserstack.Local = class LocalMock {
export class Local {
public isRunning = mockIsRunning
public start = mockStart
public stop = mockStop
}
module.exports = Browserstack
Loading

0 comments on commit 8cb10cd

Please sign in to comment.