mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
27 lines
725 B
TypeScript
27 lines
725 B
TypeScript
|
import expect from 'expect';
|
||
|
|
||
|
import {
|
||
|
buildTestingTree,
|
||
|
getMultiProjectFile,
|
||
|
setupHttpHooks,
|
||
|
} from './utils.js';
|
||
|
|
||
|
describe('@puppeteer/ng-schematics: config', () => {
|
||
|
setupHttpHooks();
|
||
|
|
||
|
describe('Single Project', () => {
|
||
|
it('should create default file', async () => {
|
||
|
const tree = await buildTestingTree('config', 'single');
|
||
|
expect(tree.files).toContain('/.puppeteerrc.mjs');
|
||
|
});
|
||
|
});
|
||
|
|
||
|
describe('Multi projects', () => {
|
||
|
it('should create default file', async () => {
|
||
|
const tree = await buildTestingTree('config', 'multi');
|
||
|
expect(tree.files).toContain('/.puppeteerrc.mjs');
|
||
|
expect(tree.files).not.toContain(getMultiProjectFile('.puppeteerrc.mjs'));
|
||
|
});
|
||
|
});
|
||
|
});
|