Skip to content

Commit bbe3a35

Browse files
douglasduteilhansl
authored andcommitted
test(@angular/cli): add non-relative module resolution test
1 parent 2b4b4c9 commit bbe3a35

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { prependToFile, writeMultipleFiles } from '../../utils/fs';
2+
import { ng } from '../../utils/process';
3+
4+
5+
export default async function () {
6+
await writeMultipleFiles({
7+
'./src/app/foo.ts': `
8+
export const foo = 'fooo';
9+
`,
10+
'./src/app/bar.ts': `
11+
import { foo } from 'app/foo';
12+
13+
console.log(foo);
14+
`
15+
}),
16+
17+
await prependToFile('src/app/app.module.ts', `import './bar';\n`);
18+
19+
await ng('build');
20+
await ng('build', '--aot');
21+
}

0 commit comments

Comments
 (0)