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: esm variant of integration tests #779

Merged
merged 15 commits into from
Jul 26, 2023
Merged

test: esm variant of integration tests #779

merged 15 commits into from
Jul 26, 2023

Conversation

rflechtner
Copy link
Contributor

@rflechtner rflechtner commented Jul 21, 2023

fixes KILTProtocol/ticket#2753

Cleans up testing infrastructure and sets up integration tests to be run against both the cjs and esm variants of the code.
Includes:

  • updating jest to latest version
  • moving integration tests, breaking changes tests and test utils to tests folder
  • stop using jest-runner-groups in favour of separate test configurations

How to test:

Tests are run in CI and should complete successfully.

Checklist:

  • I have verified that the code works
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)
    • Either PR or Ticket to update the Docs
    • Link the PR/Ticket here

@rflechtner rflechtner changed the title Rf test esm test: esm variant of integration tests Jul 21, 2023
@rflechtner rflechtner marked this pull request as ready for review July 25, 2023 13:07
Copy link
Collaborator

@arty-name arty-name left a comment

Choose a reason for hiding this comment

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

So much noise from reordered imports and a different snapshot format :/

jest.config.js Show resolved Hide resolved
roots: ['<rootDir>/tests/breakingChanges'],
},
]
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will the project benefit from an .editorconfig file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks like it is not well supported in VSCode, which most of the team uses (https://asp.net-hacker.rocks/2020/01/13/editorconfig.html), but it can't hurt either I assume. I did format it though?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The post is 3 years old, isn’t it :)
In the full diff GitHub highlights the files without a trailing newline.

@rflechtner
Copy link
Contributor Author

So much noise from reordered imports and a different snapshot format :/

Yeah sorry for these. I could have avoided some of the noise from the reordering, but these are files where I had to touch the imports anyway, so I figured I may as well leave them cleaned up...

@rflechtner rflechtner merged commit 2cbfd3e into develop Jul 26, 2023
15 checks passed
@rflechtner rflechtner deleted the rf-test-esm branch July 26, 2023 08:05
rflechtner added a commit that referenced this pull request Jul 26, 2023
* test: move integration tests to tests directory
* test: integration tests on esm
* tests: move test utils to tests folder
* tests: move jest setup file
* tests: use projects instead of group runner
* tests: update test coverage setup
* tests: fix failing & flaky integration tests
* ci: run esm tests in ci
rflechtner added a commit that referenced this pull request Aug 3, 2023
* test: move integration tests to tests directory
* test: integration tests on esm
* tests: move test utils to tests folder
* tests: move jest setup file
* tests: use projects instead of group runner
* tests: update test coverage setup
* tests: fix failing & flaky integration tests
* ci: run esm tests in ci
rflechtner added a commit that referenced this pull request Aug 3, 2023
* test: move integration tests to tests directory
* test: integration tests on esm
* tests: move test utils to tests folder
* tests: move jest setup file
* tests: use projects instead of group runner
* tests: update test coverage setup
* tests: fix failing & flaky integration tests
* ci: run esm tests in ci
rflechtner added a commit that referenced this pull request Aug 3, 2023
* test: move integration tests to tests directory
* test: integration tests on esm
* tests: move test utils to tests folder
* tests: move jest setup file
* tests: use projects instead of group runner
* tests: update test coverage setup
* tests: fix failing & flaky integration tests
* ci: run esm tests in ci
rflechtner added a commit that referenced this pull request Aug 22, 2023
* refactor!: nest ctype in ICTypeDetails (#766)
* refactor: change ctype parameter name to cType where possible

* feat: re-export imported types from @kiltprotocol/types (#762)
* feat: deprecate CType meta schema draft-01 (#778)

* fix: default to log level warn in non-production environments

* test: skip expensive delegation node tests
* test: esm variant of integration tests (#779)
* test: make tests work with new kilt node cli (#796)
* chore: update metadata to 1.11.0
* chore(deps): update cbor-web to v9
* chore(deps-dev): bump webpack from 5.70.0 to 5.76.0 (#771)
* chore(deps-dev): bump semver-regex from 3.1.3 to 3.1.4 (#775)
* chore(deps-dev): bump typedoc to resolve dependency conflict
* ci: make latest-develop tests optional and latest mandatory

Co-authored-by: Gerawork Aynekulu <ggera@users.noreply.github.com>
Co-authored-by: Raphael Flechtner <raphael@kilt.io>
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