Skip to content

Commit

Permalink
Update dependencies and apply Jest coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
henryruhs committed Jan 18, 2023
1 parent ae1080c commit 927e027
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14, 15, 16, 17, 18, 19 ]
node-version: [ 16, 17, 18, 19 ]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "specut",
"description": "Cut massive test suites into equal chunks",
"version": "2.1.0",
"version": "2.1.1",
"license": "MIT",
"type": "module",
"keywords":
Expand All @@ -24,6 +24,10 @@
"type": "git",
"url": "https://github.com/henryruhs/specut.git"
},
"engines":
{
"node": ">15"
},
"dependencies":
{
"commander": "10.0.0",
Expand Down
1 change: 1 addition & 0 deletions tests/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ describe('cli', () =>
{
exec('node --loader ts-node/esm src/cli.ts tests/provider --amount=2', error =>
{
console.log(error);
expect(error).to.be.null;
expect(fs.readdirSync('tests/__provider__0')).to.be.eql([ '01', '02', '03', '04' ]);
expect(fs.readdirSync('tests/__provider__1')).to.be.eql([ '04' ]);
Expand Down
4 changes: 2 additions & 2 deletions tests/core.class.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('core', () =>
expect(core.analyse().sizes).to.eql(
{
file: 1,
describe: 0,
describe: 1,
it: 2
});
expect(core.analyse().files).to.eql(
Expand All @@ -54,7 +54,7 @@ describe('core', () =>
filePath: 'tests/provider/02/01.spec.ts',
sizes:
{
describe: 0,
describe: 1,
it: 2
}
}
Expand Down
15 changes: 9 additions & 6 deletions tests/provider/02/01.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { expect } from 'chai';

it('01', () =>
describe('01', () =>
{
expect('it').to.equal('it');
});
it('01', () =>
{
expect('it').to.equal('it');
});

it('02', () =>
{
expect('describe').to.equal('describe');
it('02', () =>
{
expect('describe').to.equal('describe');
});
});

0 comments on commit 927e027

Please sign in to comment.