Skip to content

Merge pull request #6 from bugsnag/hotfix/package-name #63

Merge pull request #6 from bugsnag/hotfix/package-name

Merge pull request #6 from bugsnag/hotfix/package-name #63

Triggered via push November 5, 2025 16:25
Status Failure
Total duration 37s
Artifacts

unit-tests.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

3 errors
build (22, 6)
Process completed with exit code 1.
test/source-map-uploader-plugin.test.ts > BugsnagSourceMapUploaderPlugin > should use the relative filepath for bundleUrl if base is not provided in config: test/source-map-uploader-plugin.test.ts#L116
AssertionError: expected "spy" to be called once with arguments: [ { apiKey: 'test-api', …(5) }, …(1) ] Received: 1st spy call: [ { "apiKey": "test-api", - "bundle": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-DTHX3LI9.js", - "bundleUrl": "/assets/index-DTHX3LI9.js", + "bundle": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-qSbgrMh8.js", + "bundleUrl": "https://bugsnag.com/assets/index-qSbgrMh8.js", "projectRoot": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic", - "sourceMap": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-DTHX3LI9.js.map", + "sourceMap": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-qSbgrMh8.js.map", "versionName": "1.0.0", }, "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist", ] 2nd spy call: [ { "apiKey": "test-api", - "bundle": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-DTHX3LI9.js", - "bundleUrl": "/assets/index-DTHX3LI9.js", + "bundle": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-qSbgrMh8.js", + "bundleUrl": "/assets/index-qSbgrMh8.js", "projectRoot": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic", - "sourceMap": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-DTHX3LI9.js.map", + "sourceMap": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-qSbgrMh8.js.map", "versionName": "1.0.0", }, "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist", ] Number of calls: 2 ❯ test/source-map-uploader-plugin.test.ts:116:33
test/source-map-uploader-plugin.test.ts > BugsnagSourceMapUploaderPlugin > should upload sourcemaps during build process: test/source-map-uploader-plugin.test.ts#L71
AssertionError: expected "spy" to be called once with arguments: [ { apiKey: 'test-api', …(5) }, …(1) ] Received: 1st spy call: [ { "apiKey": "test-api", - "bundle": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-DTHX3LI9.js", - "bundleUrl": "https://bugsnag.com/assets/index-DTHX3LI9.js", + "bundle": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-qSbgrMh8.js", + "bundleUrl": "https://bugsnag.com/assets/index-qSbgrMh8.js", "projectRoot": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic", - "sourceMap": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-DTHX3LI9.js.map", + "sourceMap": "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist/assets/index-qSbgrMh8.js.map", "versionName": "1.0.0", }, "/home/runner/work/vite-plugin-bugsnag/vite-plugin-bugsnag/test/fixtures/basic/dist", ] Number of calls: 1 ❯ test/source-map-uploader-plugin.test.ts:71:33