fix(angular): renable v1 lib test (#9494)
This commit is contained in:
parent
1903f018c9
commit
6b6f19206c
@ -9,6 +9,7 @@ import {
|
|||||||
} from '@nrwl/devkit';
|
} from '@nrwl/devkit';
|
||||||
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
|
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing';
|
||||||
import { Linter } from '@nrwl/linter';
|
import { Linter } from '@nrwl/linter';
|
||||||
|
import { toNewFormat } from 'nx/src/shared/workspace';
|
||||||
import { createApp } from '../../utils/nx-devkit/testing';
|
import { createApp } from '../../utils/nx-devkit/testing';
|
||||||
import { UnitTestRunner } from '../../utils/test-runners';
|
import { UnitTestRunner } from '../../utils/test-runners';
|
||||||
import {
|
import {
|
||||||
@ -75,29 +76,29 @@ describe('lib', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// describe('workspace v1', () => {
|
describe('workspace v1', () => {
|
||||||
// beforeEach(() => {
|
beforeEach(() => {
|
||||||
// tree = createTreeWithEmptyWorkspace(1);
|
tree = createTreeWithEmptyWorkspace(1);
|
||||||
// });
|
});
|
||||||
//
|
|
||||||
// it('should default to inline project for first project', async () => {
|
it('should default to inline project for first project', async () => {
|
||||||
// await runLibraryGeneratorWithOpts({
|
await runLibraryGeneratorWithOpts({
|
||||||
// standaloneConfig: false,
|
standaloneConfig: false,
|
||||||
// });
|
});
|
||||||
// const workspaceJsonEntry = toNewFormat(readJson(tree, 'workspace.json'))
|
const workspaceJsonEntry = toNewFormat(readJson(tree, 'workspace.json'))
|
||||||
// .projects['my-lib'];
|
.projects['my-lib'];
|
||||||
// const projectConfig = readProjectConfiguration(tree, 'my-lib');
|
const projectConfig = readProjectConfiguration(tree, 'my-lib');
|
||||||
// expect(projectConfig.root).toEqual('libs/my-lib');
|
expect(projectConfig.root).toEqual('libs/my-lib');
|
||||||
// expect(projectConfig).toMatchObject(workspaceJsonEntry);
|
expect(projectConfig).toMatchObject(workspaceJsonEntry);
|
||||||
// });
|
});
|
||||||
//
|
|
||||||
// it('should throw for standaloneConfig === true', async () => {
|
it('should throw for standaloneConfig === true', async () => {
|
||||||
// const promise = runLibraryGeneratorWithOpts({
|
const promise = runLibraryGeneratorWithOpts({
|
||||||
// standaloneConfig: true,
|
standaloneConfig: true,
|
||||||
// });
|
});
|
||||||
// await expect(promise).rejects.toThrow();
|
await expect(promise).rejects.toThrow();
|
||||||
// });
|
});
|
||||||
// });
|
});
|
||||||
|
|
||||||
describe('not nested', () => {
|
describe('not nested', () => {
|
||||||
it('should update ng-package.json', async () => {
|
it('should update ng-package.json', async () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user