Skip to content

Commit 6ebba3c

Browse files
committed
fix: resolve TypeScript error in slas-lifecycle test and add pretest to CI
- Fix expectFailure call to pass options object instead of RegExp array - Add pretest step to CI workflow to catch type errors before publish
1 parent fc29fe9 commit 6ebba3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ jobs:
5757
- name: Run SDK tests
5858
id: sdk-test
5959
working-directory: packages/b2c-tooling-sdk
60-
run: pnpm run test:ci && pnpm run lint
60+
run: pnpm run pretest && pnpm run test:ci && pnpm run lint
6161

6262
- name: Run CLI tests
6363
id: cli-test
6464
if: always() && steps.sdk-test.conclusion != 'cancelled'
6565
working-directory: packages/b2c-cli
66-
run: pnpm run test:ci && pnpm run lint
66+
run: pnpm run pretest && pnpm run test:ci && pnpm run lint
6767

6868
- name: Test Report
6969
uses: dorny/test-reporter@fe45e9537387dac839af0d33ba56eed8e24189e8 # v2.3.0

packages/b2c-cli/test/functional/e2e/slas-lifecycle.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ describe('SLAS Lifecycle E2E Tests', function () {
234234
'--json',
235235
]);
236236

237-
expectFailure(result, [/scopes/i]);
237+
expectFailure(result, {messagePatterns: [/scopes/i]});
238238
});
239239
});
240240

0 commit comments

Comments
 (0)