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

chore: fix error tests listener registration #1291

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

pauldambra
Copy link
Member

I can't consistently make this happen locally

But I did once notice that I don't always get

possible EventEmitter memory leak detected

i only noticed after the fact but if we didn't register an event listener then the tests wouldn't pass

i've checked console logs in prod for our team and don't see this so it's safe to patch in tests (🙈)

Copy link

vercel bot commented Jul 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Jul 8, 2024 10:11am

const decideResponse = {
editorParams: {},
featureFlags: ['session-recording-player'],
supportedCompression: ['gzip-js'],
excludedDomains: [],
autocaptureExceptions: false,
...decideResponseOverrides,
config: { ...decideResponseOverrides.config },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nobody sends this, and DecideResponse doesn't have a config prop so 🔪

@@ -32,7 +32,7 @@ beforeEach(() => {

cy.readFile('dist/recorder.js').then((body) => {
cy.intercept('/static/recorder.js*', { body }).as('recorder')
cy.intercept('/static/recorder-v2.js*', { body }).as('recorder')
cy.intercept('/static/recorder-v2.js*', { body }).as('recorderv2')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove this tbh but fly-by rename so it doesn't clash

@@ -48,7 +48,7 @@ beforeEach(() => {
})

cy.readFile('dist/exception-autocapture.js').then((body) => {
cy.intercept('/static/exception-autocapture.js*', { body })
cy.intercept('/static/exception-autocapture.js*', { body }).as('exception-autocapture-script')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better safe than sorry

Copy link

github-actions bot commented Jul 8, 2024

Size Change: 0 B

Total Size: 1.15 MB

ℹ️ View Unchanged
Filename Size
dist/array.full.js 316 kB
dist/array.js 154 kB
dist/exception-autocapture.js 10.4 kB
dist/main.js 155 kB
dist/module.js 154 kB
dist/recorder-v2.js 110 kB
dist/recorder.js 110 kB
dist/surveys-preview.js 59.6 kB
dist/surveys.js 64.6 kB
dist/tracing-headers.js 8.26 kB
dist/web-vitals.js 5.79 kB

compressed-size-action

@pauldambra pauldambra requested a review from daibhin July 8, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants