Skip to content

Commit

Permalink
fix(schematics): remove polyfill.ts from tsconfig.spec.json (jest-pro…
Browse files Browse the repository at this point in the history
…ject)
  • Loading branch information
skydever authored and FrozenPandaz committed Sep 19, 2018
1 parent f19810a commit 97b7737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"module": "commonjs",
"types": ["jest", "node"]
},
"files": [<% if(!skipSetupFile) { %>"src/test-setup.ts", <% } %>"src/polyfills.ts"],
<% if(!skipSetupFile) { %>"files": ["src/test-setup.ts"],<% } %>
"include": ["**/*.spec.ts", "**/*.d.ts"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('lib', () => {
outDir: '../../dist/out-tsc/libs/lib1',
types: ['jest', 'node']
},
files: ['src/test-setup.ts', 'src/polyfills.ts'],
files: ['src/test-setup.ts'],
include: ['**/*.spec.ts', '**/*.d.ts']
});
});
Expand Down Expand Up @@ -140,7 +140,7 @@ describe('lib', () => {
resultTree,
'libs/lib1/tsconfig.spec.json'
);
expect(tsConfig.files).not.toContain('src/test-setup.ts');
expect(tsConfig.files).toBeUndefined();
});
});
});

0 comments on commit 97b7737

Please sign in to comment.