Skip to content

fix(tests): Improve lib testing support#21

Open
artemyarulin wants to merge 1 commit intomainfrom
fix/test-running
Open

fix(tests): Improve lib testing support#21
artemyarulin wants to merge 1 commit intomainfrom
fix/test-running

Conversation

@artemyarulin
Copy link
Copy Markdown
Contributor

  • Lib testing fails because there is no profiler available
  • Allow passing --enable-source-maps flag to workers

…and also ensure --enable-source-maps flag in worker
Comment on lines 59 to +512
@@ -505,8 +508,8 @@ module.exports = {
DefaultSerializer,
DefaultDeserializer,
deserialize,
takeCoverage: profiler.takeCoverage,
stopCoverage: profiler.stopCoverage,
takeCoverage: profiler.takeCoverage ?? noop,
stopCoverage: profiler.stopCoverage ?? noop,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We can't modify files on the lib js files.

We should only do modifications on the native side (we can probably mock it on the profiler native binding)

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