awesome-typescript-loader
Version:
Awesome TS loader for webpack
20 lines (16 loc) • 436 B
text/typescript
import {
src, webpackConfig, tsconfig,
compile, expectErrors, expectWarnings, spec
} from './utils';
spec(__filename, async function() {
src('index.ts', `
import './empty.d.ts'
`);
src('empty.d.ts', ``);
tsconfig();
const stats = await compile(webpackConfig());
expectErrors(stats, 0);
expectWarnings(stats, 1, [
'TypeScript declaration files should never be required'
]);
});