How to use the @nstudio/xplat/testing.createEmptyWorkspace function in @nstudio/xplat

To help you get started, we’ve selected a few @nstudio/xplat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nstudio / xplat / packages / nativescript-angular / src / schematics / xplat / index.spec.ts View on Github external
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();
  });
github nstudio / xplat / packages / web-angular / src / schematics / xplat / index.spec.ts View on Github external
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();
  });
});
github nstudio / xplat / packages / electron-angular / src / schematics / xplat / index.spec.ts View on Github external
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();
  });
github nstudio / xplat / packages / xplat / src / schematics / init / index.spec.ts View on Github external
beforeEach(() => {
    appTree = createEmptyWorkspace(Tree.empty());
  });
github nstudio / xplat / packages / web / src / schematics / xplat / index.spec.ts View on Github external
beforeEach(() => {
    appTree = Tree.empty();
    appTree = createEmptyWorkspace(appTree);
  });
github nstudio / xplat / packages / ionic-angular / src / schematics / application / index.spec.ts View on Github external
beforeEach(() => {
    appTree = Tree.empty();
    appTree = createEmptyWorkspace(appTree, 'angular');
  });
github nstudio / xplat / packages / nativescript-angular / src / schematics / application / index.spec.ts View on Github external
beforeEach(() => {
    appTree = Tree.empty();
    appTree = createEmptyWorkspace(appTree, 'angular');
  });
github nstudio / xplat / packages / nativescript-angular / src / schematics / xplat / index.spec.ts View on Github external
beforeEach(() => {
    appTree = Tree.empty();
    appTree = createEmptyWorkspace(appTree, 'angular');
  });
github nstudio / xplat / packages / xplat / src / schematics / ts-config / index.spec.ts View on Github external
beforeEach(() => {
    appTree = Tree.empty();
    appTree = createEmptyWorkspace(appTree);
  });
github nstudio / xplat / packages / electron-angular / src / schematics / xplat / index.spec.ts View on Github external
beforeEach(() => {
    appTree = Tree.empty();
    appTree = createEmptyWorkspace(appTree, 'angular');
  });