Skip to content

Commit

Permalink
Fix e2e by expose the recorder chunk in the e2e server app
Browse files Browse the repository at this point in the history
  • Loading branch information
amortemousque committed Nov 29, 2024
1 parent 79035cb commit 91030c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/e2e/lib/framework/sdkBuilds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as path from 'path'

const ROOT = path.join(__dirname, '../../../..')
export const RUM_BUNDLE = path.join(ROOT, 'packages/rum/bundle/datadog-rum.js')
export const RUM_BUNDLE_RECORDER_CHUNK = path.join(ROOT, 'packages/rum/bundle/recorder.datadog-rum.js')
export const RUM_SLIM_BUNDLE = path.join(ROOT, 'packages/rum-slim/bundle/datadog-rum-slim.js')
export const LOGS_BUNDLE = path.join(ROOT, 'packages/logs/bundle/datadog-logs.js')
export const WORKER_BUNDLE = path.join(ROOT, 'packages/worker/bundle/worker.js')
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/lib/framework/serverApps/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ export function createMockServerApp(servers: Servers, setup: string): MockServer
res.sendFile(sdkBuilds.RUM_BUNDLE)
})

app.get('/recorder.datadog-rum.js', (_req, res) => {
res.sendFile(sdkBuilds.RUM_BUNDLE_RECORDER_CHUNK)
})

app.get('/datadog-rum-slim.js', (_req, res) => {
res.sendFile(sdkBuilds.RUM_SLIM_BUNDLE)
})
Expand Down

0 comments on commit 91030c8

Please sign in to comment.