Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/smoke-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ runs:
- 'packages/browser/**'
- 'packages/react/**'
- 'packages/sdk-core/**'
- 'smoketests/**'
- '.github/actions/smoke-tests/**'
node:
- 'packages/sdk-core/**'
- 'packages/node/**'
- 'smoketests/**'
- '.github/actions/smoke-tests/**'

- run: npm run smoketest:node
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions smoketests/tests/jest/node/tests.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// explicit import so jest matcher types win over expect-webdriverio's global expect
import { expect } from '@jest/globals';
import { npm } from '../../__helpers/npm.js';
import { RXID_REGEX } from '../../__helpers/rxid.js';
import { DIRECT_SUBMIT_URL, SUBMIT_LAYER_URL } from '../../__helpers/urls.js';
Expand Down
11 changes: 4 additions & 7 deletions smoketests/wdio.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ export const config: Options.Testrunner & {
capabilities: WebdriverIO.Capabilities[];
} = {
runner: 'local',
autoCompileOpts: {
autoCompile: true,
tsNodeOpts: {
project: './tsconfig.json',
transpileOnly: true,
},
},

user: process.env.SMOKETESTS_SAUCE_USERNAME,
key: process.env.SMOKETESTS_SAUCE_ACCESS_KEY,
Expand Down Expand Up @@ -56,6 +49,10 @@ export const config: Options.Testrunner & {
'sauce',
{
sauceConnect: true,
sauceConnectOpts: {
// sc output is debug-level and dropped under logLevel info, print it so CI shows the exit reason
logger: (output: string) => console.log(`[sauce-connect] ${output}`),
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
setJobName(config, capabilities: any) {
return `@backtrace/javascript smoketests for ${capabilities.browserName} on ${capabilities.platformName}`;
Expand Down
Loading