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

test: remove extra polyfills only for testing #2428

Merged
merged 7 commits into from
Aug 12, 2023

Conversation

ckniffen
Copy link
Collaborator

@ckniffen ckniffen commented Aug 8, 2023

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

  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)

Future Work

  • Run all xrpl unit tests in browser
  • Run other package's unit tests in the browser.

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.
@socket-security
Copy link

socket-security bot commented Aug 8, 2023

@@ -33,9 +33,6 @@
"devDependencies": {
"@geut/browser-node-core": "^2.0.13",
"@types/node": "^16.18.38",
"browserify-fs": "^1.0.0",
Copy link
Collaborator Author

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

Copy link
Collaborator Author

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 */
Copy link
Contributor

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?

Copy link
Collaborator Author

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

Copy link
Contributor

@JST5000 JST5000 left a comment

Choose a reason for hiding this comment

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

LGTM

@ckniffen ckniffen requested a review from khancode August 9, 2023 22:21
@ckniffen ckniffen added dependencies Pull requests that update a dependency file 3.0 labels Aug 9, 2023
ckniffen added a commit to sublimator/ripple-lib that referenced this pull request Aug 10, 2023
…r path

Turns out `stream-browserify` cant be removed till XRPLF#2428 goes into effect.
@ckniffen ckniffen merged commit 4fe1386 into 3.0 Aug 12, 2023
12 checks passed
@ckniffen ckniffen deleted the feature/remove-testing-polyfills branch August 12, 2023 01:22
ckniffen added a commit that referenced this pull request Aug 12, 2023
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.
ckniffen added a commit to sublimator/ripple-lib that referenced this pull request Aug 12, 2023
stream-browserify last dependencies removed by XRPLF#2428 and this branch
moving to noble libs.
ckniffen added a commit that referenced this pull request Aug 15, 2023
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.
ckniffen added a commit that referenced this pull request Aug 28, 2023
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.
ckniffen added a commit that referenced this pull request Aug 28, 2023
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.
ckniffen added a commit that referenced this pull request Sep 1, 2023
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.
ckniffen added a commit that referenced this pull request Oct 5, 2023
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.
ckniffen added a commit that referenced this pull request Oct 18, 2023
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.
ckniffen added a commit that referenced this pull request Oct 25, 2023
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.
ckniffen added a commit that referenced this pull request Nov 1, 2023
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.
ckniffen added a commit that referenced this pull request Nov 30, 2023
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.
ckniffen added a commit that referenced this pull request Feb 1, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0 dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants