parent
1b2eaf81fe
commit
89b522d2bc
@ -125,6 +125,12 @@ forEachCli(() => {
|
||||
filesToCheck.push(`dist/apps/${appName}/styles.css`);
|
||||
}
|
||||
checkFilesExist(...filesToCheck);
|
||||
if (opts.checkStyles) {
|
||||
expect(readFile(`dist/apps/${appName}/index.html`)).toContain(
|
||||
`<link rel="stylesheet" href="styles.css">`
|
||||
);
|
||||
}
|
||||
|
||||
const testResults = await runCLIAsync(`test ${appName}`);
|
||||
expect(testResults.stderr).toContain('Test Suites: 1 passed, 1 total');
|
||||
const lintE2eResults = runCLI(`lint ${appName}-e2e`);
|
||||
|
||||
@ -49,6 +49,9 @@ forEachCli(() => {
|
||||
`dist/apps/${appName}/main-es5.js`,
|
||||
`dist/apps/${appName}/styles.css`
|
||||
);
|
||||
expect(readFile(`dist/apps/${appName}/index.html`)).toContain(
|
||||
`<link rel="stylesheet" href="styles.css">`
|
||||
);
|
||||
const testResults = await runCLIAsync(`test ${appName}`);
|
||||
expect(testResults.stderr).toContain('Test Suites: 1 passed, 1 total');
|
||||
const lintE2eResults = runCLI(`lint ${appName}-e2e`);
|
||||
|
||||
@ -105,6 +105,9 @@ export function run(
|
||||
normalize(context.workspaceRoot),
|
||||
options.index
|
||||
),
|
||||
files: result1.emittedFiles.filter(
|
||||
x => x.extension === '.css'
|
||||
),
|
||||
noModuleFiles: result2.emittedFiles,
|
||||
moduleFiles: result1.emittedFiles,
|
||||
baseHref: options.baseHref,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user