Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wasm): Check for browser bundle existence before running tests #4074

Merged
merged 1 commit into from
Oct 19, 2021
Merged
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
9 changes: 9 additions & 0 deletions packages/wasm/test/integration.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/* global page, window */
const fs = require('fs');
const path = require('path');

const HOST = `http://localhost:${process.env.PORT}`;

if (!fs.existsSync(path.resolve(__dirname, '../../browser/build/bundle.js'))) {
throw new Error(
'ERROR: No browser bundle found in `packages/browser/build/`. Please run `yarn build` in the browser package before running wasm tests.',
);
}

describe('Wasm', () => {
it('captured exception should include modified frames and debug_meta attribute', async () => {
await page.goto(HOST);
Expand Down