Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should create default xplat support with framework suffix when not specifying default', async () => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree);
const options: XplatHelpers.Schema = { ...defaultOptions };
const tree = await runSchematic('xplat', options, appTree);
expect(tree.exists('/xplat/nativescript-angular/index.ts')).toBeTruthy();
const filePath = '/tsconfig.json';
const fileContent = jsonParse(getFileContent(tree, filePath));
// console.log(fileContent);
expect(
fileContent.compilerOptions.paths['@testing/nativescript-angular']
).toBeTruthy();
expect(
fileContent.compilerOptions.paths['@testing/nativescript-angular/*']
).toBeTruthy();
});
it('should create default xplat support with framework suffix when not specifying default', async () => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree);
const options: XplatHelpers.Schema = { ...defaultOptions };
const tree = await runSchematic('xplat', options, appTree);
expect(tree.exists('/xplat/web-angular/index.ts')).toBeTruthy();
const filePath = '/tsconfig.json';
const fileContent = jsonParse(getFileContent(tree, filePath));
// console.log(fileContent);
expect(
fileContent.compilerOptions.paths['@testing/web-angular']
).toBeTruthy();
expect(
fileContent.compilerOptions.paths['@testing/web-angular/*']
).toBeTruthy();
});
});
it('should create default xplat support with framework suffix when not specifying default', async () => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree);
const options: XplatHelpers.Schema = { ...defaultOptions };
const tree = await runSchematic('xplat', options, appTree);
expect(tree.exists('/xplat/electron-angular/index.ts')).toBeTruthy();
const filePath = '/tsconfig.json';
const fileContent = jsonParse(getFileContent(tree, filePath));
// console.log(fileContent);
expect(
fileContent.compilerOptions.paths['@testing/electron-angular']
).toBeTruthy();
expect(
fileContent.compilerOptions.paths['@testing/electron-angular/*']
).toBeTruthy();
});
beforeEach(() => {
appTree = createEmptyWorkspace(Tree.empty());
});
beforeEach(() => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree);
});
beforeEach(() => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree, 'angular');
});
beforeEach(() => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree, 'angular');
});
beforeEach(() => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree, 'angular');
});
beforeEach(() => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree);
});
beforeEach(() => {
appTree = Tree.empty();
appTree = createEmptyWorkspace(appTree, 'angular');
});