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(describe): support for Node.js familiar API usage #353

Merged
merged 4 commits into from
Jun 9, 2024
Merged

Conversation

wellwelwel
Copy link
Owner

Now describe module can be used as:

import { describe, assert } from 'poku';

describe('Test Title');
describe('Test Title', { icon: '🔬' });
import { describe, assert } from 'poku';

describe('Test Suite', () => {
  assert.equal(1 + 1, 2);
);

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

describe(() => {
  assert.equal(1 + 1, 2, '1 + 1 should be 2');
);

Copy link

codecov bot commented Jun 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.00%. Comparing base (1c425e1) to head (04487db).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #353      +/-   ##
==========================================
+ Coverage   94.90%   95.00%   +0.09%     
==========================================
  Files          32       32              
  Lines        2609     2640      +31     
  Branches      400      406       +6     
==========================================
+ Hits         2476     2508      +32     
  Misses        125      125              
+ Partials        8        7       -1     
Flag Coverage Δ
linux-parallel 94.58% <100.00%> (+0.10%) ⬆️
linux-parallel-options 94.88% <100.00%> (+0.09%) ⬆️
linux-sequential 93.25% <100.00%> (+0.11%) ⬆️
linux-sequential-options 93.52% <100.00%> (+0.11%) ⬆️
osx-parallel 94.58% <100.00%> (+0.10%) ⬆️
osx-parallel-options 94.88% <100.00%> (+0.09%) ⬆️
osx-sequential 93.25% <100.00%> (+0.11%) ⬆️
osx-sequential-options 93.52% <100.00%> (+0.11%) ⬆️
windows-parallel 94.12% <100.00%> (+0.10%) ⬆️
windows-parallel-options 94.43% <100.00%> (+0.10%) ⬆️
windows-sequential 92.80% <100.00%> (+0.12%) ⬆️
windows-sequential-options 93.06% <100.00%> (+0.12%) ⬆️

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 23:11
@wellwelwel wellwelwel merged commit b423a7e into main Jun 9, 2024
39 checks passed
@wellwelwel wellwelwel deleted the node-api branch June 10, 2024 00:05
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