-
Notifications
You must be signed in to change notification settings - Fork 512
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
test: remove extra polyfills only for testing #2428
Conversation
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 50 dev dependencies.
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: @geut/browser-node-core@2.0.13, browserify-fs@1.0.0, constants-browserify@1.0.0, ejs@3.1.9, https-browserify@1.0.0, node-polyfill-webpack-plugin@2.0.1 |
@@ -33,9 +33,6 @@ | |||
"devDependencies": { | |||
"@geut/browser-node-core": "^2.0.13", | |||
"@types/node": "^16.18.38", | |||
"browserify-fs": "^1.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully soon we can eliminate node-polyfill-webpack-plugin
which will remove even more dependencies from package-lock.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually we can get rid of node-polyfill-webpack-plugin
now. Will eliminate 22 more deps.
|
||
// Ensure you export all added tests above "export * from './finalTest'", otherwise they will not be run. | ||
export * from './finalTest.test' | ||
/* eslint-disable import/unambiguous -- silence is golden */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the file is empty, why does it need to exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it wasnt empty it errored and the webpack needed an entry point. Might be worth investigating why that causes problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…r path Turns out `stream-browserify` cant be removed till XRPLF#2428 goes into effect.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
stream-browserify last dependencies removed by XRPLF#2428 and this branch moving to noble libs.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed. The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts. This also eliminates 79 dev dependencies.
High Level Overview of Change
Removes the testing polyfills by using jasmine and not jest in the browser. We were already using jasmine but where overriding those methods with jest versions which was not needed.
The previous karma setup also used a single entrypoint which meant that not all integration tests were running because all files were not imported in integrations/index.ts.
This also eliminates 79 dev dependencies.
Type of Change
Future Work
xrpl
unit tests in browser