Skip to content

Commit fa9396b

Browse files
author
Ryan Sonshine
committed
fix(paths): update test paths to keep cli in root of lib
1 parent 60ea3e1 commit fa9396b

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
4-
testMatch: ['**/test/**/*.spec.ts'],
4+
testMatch: ['**/__tests__/**/*.spec.ts'],
55
collectCoverageFrom: [
66
'<rootDir>/src/**/*.ts',
7+
'!<rootDir>/src/__tests__/**/*.ts',
78
'!<rootDir>/src/types/**/*.ts',
89
'!<rootDir>/src/cli.ts',
910
],

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "0.0.0-development",
44
"description": "A template for creating npm CLI tools using TypeScript and VSCode",
55
"files": [
6-
"lib/**/*"
6+
"!lib/__tests__/**/*",
7+
"lib/**/*",
8+
"bin/**/*"
79
],
810
"bin": {
911
"my-command": "./bin/index.js"
File renamed without changes.

test/integration/bin.js renamed to src/__tests__/integration/bin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'use strict';
33

44
require('ts-node/register');
5-
require('../../src/cli');
5+
require('../../cli');
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)