Skip to content

Commit

Permalink
fix: require to reload page between tests only if js agent is registered
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanDavlyatshin committed Oct 4, 2023
1 parent eb89467 commit 17a9bc5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@drill4j/browser-extension",
"version": "0.3.39",
"version": "0.3.40",
"license": "Apache-2.0",
"scripts": {
"build": "set NODE_ENV=development&& webpack",
Expand Down
2 changes: 1 addition & 1 deletion src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ async function sgAdaptersReducer(list: any, agentsHosts: Record<string, string>)
};
}

if (x.agentType.toLowerCase() === AgentType.JAVA_SCRIPT) {
if (x.agentType.toLowerCase() === AgentType.JAVA_SCRIPT && x.agentStatus === 'REGISTERED') {
// eslint-disable-next-line no-param-reassign
a[x.groupId].mustRecordJsCoverage = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Drill4J Browser Extension",
"version": "0.3.39",
"version": "0.3.40",
"background": {
"page": "background.html",
"persistent": true
Expand Down

0 comments on commit 17a9bc5

Please sign in to comment.