Skip to content

Commit

Permalink
test: skip cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
knightedcodemonkey committed Sep 30, 2024
1 parent 48bbce9 commit 4581a24
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
- name: Lint
run: npm run lint
- name: Test
env:
NODE_OPTIONS: "--max-old-space-size=8192"
run: npm test
- name: Report Coverage
uses: codecov/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint": "eslint src/*.js test/*.js",
"test:integration": "node --test --test-reporter=spec test/integration.js",
"test:monorepos": "node --test --test-reporter=spec test/monorepos.js",
"test": "c8 --reporter=text --reporter=text-summary --reporter=lcov node --test --test-reporter=spec test/integrationOther.js",
"test": "c8 --reporter=text --reporter=text-summary --reporter=lcov node --test --test-reporter=spec test/integration.js test/monorepos.js",
"build": "node src/duel.js --dirs",
"prepack": "npm run build"
},
Expand Down
8 changes: 4 additions & 4 deletions test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe('duel', () => {
assert.equal(statusEsm, 0)
})

it.skip('supports both builds output to directories', async t => {
it('supports both builds output to directories', async t => {
const spy = t.mock.method(global.console, 'log')

t.after(async () => {
Expand All @@ -191,7 +191,7 @@ describe('duel', () => {
assert.ok(existsSync(resolve(proDist, 'cjs/index.cjs')))
})

it.skip('supports import attributes and ts import assertion resolution mode', async t => {
it('supports import attributes and ts import assertion resolution mode', async t => {
const spy = t.mock.method(global.console, 'log')

t.after(async () => {
Expand All @@ -213,7 +213,7 @@ describe('duel', () => {
assert.ok(resp.toString().indexOf('Options:') > -1)
})

it.skip('reports compilation errors during a build', async t => {
it('reports compilation errors during a build', async t => {
const spy = t.mock.method(global.console, 'log')
const spyExit = t.mock.method(process, 'exit')

Expand All @@ -234,7 +234,7 @@ describe('duel', () => {
assert.equal(spy.mock.calls[1].arguments[1], 'Compilation errors found.')
})

it.skip('reports an error when no package.json file found', async t => {
it('reports an error when no package.json file found', async t => {
const spy = t.mock.method(global.console, 'log')

t.after(async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/integrationOther.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('duel', () => {
assert.equal(spy.mock.calls[1].arguments[1], 'Compilation errors found.')
})

it.skip('reports an error when no package.json file found', async t => {
it('reports an error when no package.json file found', async t => {
const spy = t.mock.method(global.console, 'log')

t.after(async () => {
Expand Down

0 comments on commit 4581a24

Please sign in to comment.