diff --git a/packages/plugin-core/test/sourcemaps.test.ts b/packages/plugin-core/test/sourcemaps.test.ts index c5668c3e7..0b4355464 100644 --- a/packages/plugin-core/test/sourcemaps.test.ts +++ b/packages/plugin-core/test/sourcemaps.test.ts @@ -3,7 +3,7 @@ import FormData from 'form-data' import { Buffer } from 'buffer' import { Response, FetchError } from 'node-fetch' -describe('hbUtils', () => { +describe('sourcemaps', () => { const fetchMock = td.func() const hbOptions = { endpoint: 'https://honeybadger.io/api/sourcemaps/test', diff --git a/packages/webpack/example/README.md b/packages/webpack/example/README.md index 8f947ad68..e529b88e8 100644 --- a/packages/webpack/example/README.md +++ b/packages/webpack/example/README.md @@ -5,7 +5,11 @@ Webpack project based [Webpack's example project](https://webpack.js.org/guides/ Note that currently this project is just used to test the upload of sourcemaps and deploy notifications -- the sourcemaps are not expected to be correctly applied to errors from this project since we didn't set up the revision and assetsUrl. ## Setup -Your API key should be in an environment variable `HONEYBADGER_API_KEY`. You can do this with [direnv](https://direnv.net/) or however you like. +Two environment variables are required: +1. `HONEYBADGER_API_KEY`: Your project's API key +2. `HONEYBADGER_REVISION`: A unique string. This needs to match between your Honeybadger.configure() and the sourcemap plugin for sourcemaps to be applied. + +You can manage environment variables with [direnv](https://direnv.net/) or however you like. ## Testing Run `npm run build` to run webpack. You should see a sourcemap and a deploy notification uploaded to Honeybadger. \ No newline at end of file diff --git a/packages/webpack/example/index.html b/packages/webpack/example/index.html index 90375db88..e33142571 100644 --- a/packages/webpack/example/index.html +++ b/packages/webpack/example/index.html @@ -5,6 +5,6 @@