Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Migrate tests to latest rules-nodejs #48

Merged
merged 1 commit into from
Jul 19, 2019
Merged

Migrate tests to latest rules-nodejs #48

merged 1 commit into from
Jul 19, 2019

Conversation

vmax
Copy link
Contributor

@vmax vmax commented Jul 19, 2019

What is the goal of this PR?

Our fork of rules-nodejs is ~600 commits behind the official upstream repo and it's time to switch to upstream rules so it's easier to keep up.

What are the changes implemented in this PR?

  • Migrate nodejs_jest_test to jasmine_node_test
    • it() instead of test() in test definitions
    • expect(obj).toHaveLength(len) is not available in Jasmine, so we use expect(obj.length).toBe(len). This corresponds to exact definition of what original function does.
    • xit() instead of test.skip()
    • jasmine.DEFAULT_TIMEOUT_INTERVAL instead of jest.setTimeout
    • await expectAsync(promise).toBeRejected(); instead of await expect(promise).rejects.toThrowError();
  • Use yarn to install dependencies instead of npm:
    • this is a currently-recommended way by rules-nodejs (see their README)
    • grpc failed to install with npm_install — planning to open an issue soon
  • Add node_modules to .gitignore — rules-nodejs now install Node deps right into workspace

@vmax vmax merged commit bccbbd5 into typedb:master Jul 19, 2019
@vmax vmax deleted the upgrade-to-latest-rules-nodejs branch July 19, 2019 10:44
dmitrii-ubskii pushed a commit to dmitrii-ubskii/typedb-client-nodejs that referenced this pull request Sep 1, 2023
## What is the goal of this PR?

Fix typedb#26
Specify fields needed for Maven Central deployment

## What are the changes implemented in this PR?

Specify `project_name`, `project_description`, `project_url` and `scm_url`
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants