Skip to content

Commit

Permalink
feat(test): fix the structure for tests and build
Browse files Browse the repository at this point in the history
  • Loading branch information
kaltepeter committed Oct 28, 2020
1 parent 8816187 commit fed021e
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 21 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
tsconfig: 'tsconfig.spec.json',
},
},
roots: ['<rootDir>/src'],
roots: ['<rootDir>/schematics', '<rootDir>/svg-icons-builder'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"build": "tsc -p tsconfig.json && npm run copy:files",
"build:watch": "tsc -p tsconfig.json --watch && npm run copy:files",
"copy:files": "cp ./src/builders.json ./src/collection.json dist/ && cp ./package.json dist/ && cp ./src/svg-icons-builder/*.json ./dist/svg-icons-builder/",
"format:write": "prettier --write ./src/**/*.ts",
"copy:files": "cp ./package.json ./builders.json dist/ && cp ./svg-icons-builder/*.json ./dist/svg-icons-builder/ && cp ./schematics/*.json ./dist/schematics/",
"format:write": "prettier --write ./**/*.ts",
"test": "jest",
"test:watch": "jest --watch"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions src/package.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('svg-icons-builder', () => {

// A "run" can have multiple outputs, and contains progress information.
const run = await architect.scheduleBuilder(
'svg-icons-builder:svg-icons-builder',
'@angular-extensions/svg-icons-builder:svg-icons-builder',
{
...defaultCommonOptions,
conversionType: 'constants',
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
"noUnusedParameters": true,
"noUnusedLocals": true,
"outDir": "dist",
"rootDir": "src/",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"sourceMap": true,
"strictNullChecks": true,
"target": "es6",
"types": ["node"]
},
"include": ["src/**/*"],
"exclude": ["src/*/files/**/*", "src/**/*.spec.ts", "src/package.json"]
"include": ["schematics/**/*", "svg-icons-builder"],
"exclude": ["svg-icons-builder/*/files/**/*", "**/*.spec.ts"]
}
2 changes: 1 addition & 1 deletion tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"outDir": "./out-tsc/spec",
"types": ["jest", "node"]
},
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
"include": ["**/*.spec.ts", "schematics/**/*.d.ts", "svg-icons-builder/**/*.d.ts"]
}

0 comments on commit fed021e

Please sign in to comment.