-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2c3b72
commit bd7e666
Showing
3 changed files
with
5 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,5 @@ | ||
describe('typescript e2e', () => { | ||
|
||
it('has a test', () => { | ||
expect(true).toBeTruthy(); | ||
}) | ||
// it('should create typescript', async (done) => { | ||
// const plugin = uniq('typescript'); | ||
// ensureNxProject('@nx-dotnet/typescript', 'dist/packages/typescript'); | ||
// await runNxCommandAsync( | ||
// `generate @nx-dotnet/typescript:typescript ${plugin}` | ||
// ); | ||
|
||
// const result = await runNxCommandAsync(`build ${plugin}`); | ||
// expect(result.stdout).toContain('Executor ran'); | ||
|
||
// done(); | ||
// }); | ||
|
||
// describe('--directory', () => { | ||
// it('should create src in the specified directory', async (done) => { | ||
// const plugin = uniq('typescript'); | ||
// ensureNxProject('@nx-dotnet/typescript', 'dist/packages/typescript'); | ||
// await runNxCommandAsync( | ||
// `generate @nx-dotnet/typescript:typescript ${plugin} --directory subdir` | ||
// ); | ||
// expect(() => | ||
// checkFilesExist(`libs/subdir/${plugin}/src/index.ts`) | ||
// ).not.toThrow(); | ||
// done(); | ||
// }); | ||
// }); | ||
|
||
// describe('--tags', () => { | ||
// it('should add tags to nx.json', async (done) => { | ||
// const plugin = uniq('typescript'); | ||
// ensureNxProject('@nx-dotnet/typescript', 'dist/packages/typescript'); | ||
// await runNxCommandAsync( | ||
// `generate @nx-dotnet/typescript:typescript ${plugin} --tags e2etag,e2ePackage` | ||
// ); | ||
// const nxJson = readJson('nx.json'); | ||
// expect(nxJson.projects[plugin].tags).toEqual(['e2etag', 'e2ePackage']); | ||
// done(); | ||
// }); | ||
// }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import { createTreeWithEmptyWorkspace } from '@nrwl/devkit/testing'; | ||
import { Tree, readProjectConfiguration } from '@nrwl/devkit'; | ||
import { Tree } from '@nrwl/devkit'; | ||
|
||
import generator from './generator'; | ||
import { InitGeneratorSchema } from './schema'; | ||
|
||
describe('init generator', () => { | ||
let appTree: Tree; | ||
const options: InitGeneratorSchema = { name: 'test' }; | ||
|
||
beforeEach(() => { | ||
appTree = createTreeWithEmptyWorkspace(); | ||
}); | ||
|
||
it('should run successfully', async () => { | ||
// await generator(appTree, options); | ||
// const config = readProjectConfiguration(appTree, 'test'); | ||
expect(true).toBeTruthy(); | ||
await generator(appTree); | ||
const config = appTree.isFile('nx-dotnet.config.js'); | ||
expect(config).toBeTruthy(); | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters