Skip to content

RFC: Revamp TestUtils & tests#14

Open
bloodyowl wants to merge 3 commits into
rescript-lang:masterfrom
bloodyowl:revamp-tests
Open

RFC: Revamp TestUtils & tests#14
bloodyowl wants to merge 3 commits into
rescript-lang:masterfrom
bloodyowl:revamp-tests

Conversation

@bloodyowl

@bloodyowl bloodyowl commented Mar 10, 2021

Copy link
Copy Markdown
Contributor

→ Removes Jest
→ Updates peerDependencies

Test files render

Setup

Screen Shot 2021-03-10 at 13 44 34

Assertions setup

Screen Shot 2021-03-10 at 13 45 02

Tests

Screen Shot 2021-03-10 at 13 43 21

Screen Shot 2021-03-10 at 13 43 44

Test output render

Screen Shot 2021-03-10 at 16 55 09

Screen Shot 2021-03-10 at 16 55 58

@JasoonS JasoonS left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks clean to me (although I have zero authority here...)

@cknitt

cknitt commented Sep 30, 2022

Copy link
Copy Markdown
Member

@mattdamon108 @cristianoc What about this PR? The previously existing tests were removed in #49. Are we interested in re-adding tests?

@cristianoc

Copy link
Copy Markdown
Contributor

@mattdamon108 @cristianoc What about this PR? The previously existing tests were removed in #49. Are we interested in re-adding tests?

Not sure. Do they add value to justify the maintenance? E.g w.r.t. snapshot test where one just looks at the generated code?

Could go either way. No opinion.

@mununki

mununki commented Oct 4, 2022

Copy link
Copy Markdown
Member

I have no opinion. Actually, not sure what we should test for the binding module.
One thing that came to my mind is to test the generated js output, maybe?

@cristianoc

Copy link
Copy Markdown
Contributor

I have no opinion. Actually, not sure what we should test for the binding module.
One thing that came to my mind is to test the generated js output, maybe?

Checking in che compiled output seems by far the easiest thing. And tells everything there is to know.

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [14.x]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should probably add 16 since it's the current LTS release.

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.

6 participants