-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for side effects, and remove existing ones (#4769)
* test: add test for side-effects * refactor: remove toplevel property access
- Loading branch information
1 parent
bd5ec2d
commit e5ab37d
Showing
32 changed files
with
484 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
integration/side-effects/snapshots/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
This test checks if the side effects for loading RxJs packages have changed using <https://github.com/filipesilva/check-side-effects>. | ||
|
||
Running `npm test:side-effects` will check all ES modules listed in `side-effects.json`. | ||
|
||
Running `npm test:side-effects:update` will update any changed side effects. | ||
|
||
To add a new ES module to this test, add a new entry in `side-effects.json`. | ||
|
||
Usually the ESM and FESM should have the same output, but retained objects that were renamed during the flattening step will leave behind a different name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"tests": [ | ||
{ | ||
"esModules": "../../dist/esm5/index.js", | ||
"expectedOutput": "./snapshots/esm5/index.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm2015/index.js", | ||
"expectedOutput": "./snapshots/esm2015/index.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm5/ajax/index.js", | ||
"expectedOutput": "./snapshots/esm5/ajax.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm2015/ajax/index.js", | ||
"expectedOutput": "./snapshots/esm2015/ajax.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm5/fetch/index.js", | ||
"expectedOutput": "./snapshots/esm5/fetch.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm2015/fetch/index.js", | ||
"expectedOutput": "./snapshots/esm2015/fetch.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm5/operators/index.js", | ||
"expectedOutput": "./snapshots/esm5/operators.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm2015/operators/index.js", | ||
"expectedOutput": "./snapshots/esm2015/operators.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm5/testing/index.js", | ||
"expectedOutput": "./snapshots/esm5/testing.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm2015/testing/index.js", | ||
"expectedOutput": "./snapshots/esm2015/testing.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm5/webSocket/index.js", | ||
"expectedOutput": "./snapshots/esm5/websocket.js" | ||
}, | ||
{ | ||
"esModules": "../../dist/esm2015/webSocket/index.js", | ||
"expectedOutput": "./snapshots/esm2015/websocket.js" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var NotificationKind; | ||
|
||
(function(NotificationKind) { | ||
NotificationKind["NEXT"] = "N"; | ||
NotificationKind["ERROR"] = "E"; | ||
NotificationKind["COMPLETE"] = "C"; | ||
})(NotificationKind || (NotificationKind = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var NotificationKind; | ||
|
||
(function(NotificationKind) { | ||
NotificationKind["NEXT"] = "N"; | ||
NotificationKind["ERROR"] = "E"; | ||
NotificationKind["COMPLETE"] = "C"; | ||
})(NotificationKind || (NotificationKind = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var NotificationKind; | ||
|
||
(function(NotificationKind) { | ||
NotificationKind["NEXT"] = "N"; | ||
NotificationKind["ERROR"] = "E"; | ||
NotificationKind["COMPLETE"] = "C"; | ||
})(NotificationKind || (NotificationKind = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var NotificationKind; | ||
|
||
(function(NotificationKind) { | ||
NotificationKind["NEXT"] = "N"; | ||
NotificationKind["ERROR"] = "E"; | ||
NotificationKind["COMPLETE"] = "C"; | ||
})(NotificationKind || (NotificationKind = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "tslib"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "tslib"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "tslib"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "tslib"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "tslib"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "tslib"; |
Oops, something went wrong.