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