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

feat(test): support for Node.js familiar API usage #352

Merged
merged 4 commits into from
Jun 9, 2024
Merged

Conversation

wellwelwel
Copy link
Owner

Now test module can be used as:

import { test, assert } from 'poku';

test(() => {
  assert.equal(1 + 1, 2, '1 + 1 should be 2');
});
import { test, assert } from 'poku';

test('Sum tests', () => {
  assert.equal(1 + 1, 2);
});
import { test, assert } from 'poku';

test('Sum tests', () => {
  assert.equal(1 + 1, 2, '1 + 1 should be 2');
});

@wellwelwel wellwelwel changed the title feat: support for Node.js test familiar API usage feat(test): support for Node.js familiar API usage Jun 9, 2024
Copy link

codecov bot commented Jun 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.82%. Comparing base (6e7def5) to head (b5b7b29).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #352      +/-   ##
==========================================
- Coverage   94.91%   94.82%   -0.09%     
==========================================
  Files          31       32       +1     
  Lines        2594     2609      +15     
  Branches      413      406       -7     
==========================================
+ Hits         2462     2474      +12     
  Misses        125      125              
- Partials        7       10       +3     
Flag Coverage Δ
linux-parallel 94.48% <100.00%> (-0.01%) ⬇️
linux-parallel-options 94.78% <100.00%> (-0.01%) ⬇️
linux-sequential ?
linux-sequential-options ?
osx-parallel 94.48% <100.00%> (-0.01%) ⬇️
osx-parallel-options 94.78% <100.00%> (-0.01%) ⬇️
osx-sequential ?
osx-sequential-options ?
windows-parallel ?
windows-parallel-options ?
windows-sequential ?
windows-sequential-options ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wellwelwel wellwelwel marked this pull request as ready for review June 9, 2024 21:35
@wellwelwel wellwelwel changed the title feat(test): support for Node.js familiar API usage feat(test module): support for Node.js familiar API usage Jun 9, 2024
@wellwelwel wellwelwel changed the title feat(test module): support for Node.js familiar API usage feat(test): support for Node.js familiar API usage Jun 9, 2024
@wellwelwel wellwelwel merged commit 1c425e1 into main Jun 9, 2024
39 checks passed
@wellwelwel wellwelwel deleted the node-api branch June 9, 2024 21:54
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.

1 participant