Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(typedoc): Add test for typedoc 0.14.0
- Loading branch information
1 parent
b15b45c
commit 0601b57
Showing
11 changed files
with
134 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"baseUrl": "http://localhost:4000", | ||
"video": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
describe('docs', () => { | ||
it('loads', () => { | ||
cy.visit(''); | ||
}); | ||
|
||
it('renders dir1 external', () => { | ||
cy.visit('/'); | ||
let ul = cy.get('nav.tsd-navigation.primary ul'); | ||
ul.get('li.tsd-kind-external-module.tsd-is-external.tsd-is-external').contains('dir1'); | ||
}); | ||
|
||
it('renders dir2 external', () => { | ||
cy.visit('/'); | ||
let ul = cy.get('nav.tsd-navigation.primary ul'); | ||
ul.get('li.tsd-kind-external-module.tsd-is-external.tsd-is-external').contains('dir2'); | ||
}); | ||
|
||
it('renders root external', () => { | ||
cy.visit('/'); | ||
let ul = cy.get('nav.tsd-navigation.primary ul'); | ||
ul.get('li.tsd-kind-external-module.tsd-is-external.tsd-is-external').contains('root'); | ||
}); | ||
|
||
it('renders File1 and File2 in root', () => { | ||
cy.visit('/'); | ||
|
||
let ul = cy | ||
.get('nav.tsd-navigation.primary ul') | ||
.get('li a') | ||
.contains('root') | ||
.click(); | ||
|
||
cy.contains('External module root'); | ||
|
||
cy.get('ul.tsd-index-list') | ||
.get('a') | ||
.contains('File1'); | ||
|
||
cy.get('ul.tsd-index-list') | ||
.get('a') | ||
.contains('File2'); | ||
}); | ||
|
||
it('renders Nest1 in dir1', () => { | ||
cy.visit('/'); | ||
|
||
let ul = cy | ||
.get('nav.tsd-navigation.primary ul') | ||
.get('li a') | ||
.contains('dir1') | ||
.click(); | ||
|
||
cy.contains('External module dir1'); | ||
|
||
cy.get('ul.tsd-index-list') | ||
.get('a') | ||
.contains('Nest1'); | ||
}); | ||
|
||
it('renders Nest2 in dir2', () => { | ||
cy.visit('/'); | ||
|
||
let ul = cy | ||
.get('nav.tsd-navigation.primary ul') | ||
.get('li a') | ||
.contains('dir2') | ||
.click(); | ||
|
||
cy.contains('External module dir2'); | ||
|
||
cy.get('ul.tsd-index-list') | ||
.get('a') | ||
.contains('Nest2'); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "external-module-name-typedoc-0.14.0", | ||
"version": "1.0.0", | ||
"description": "Test against typedoc 0.14.0", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "typedoc --out dist src/index.ts", | ||
"test": "npm run build && npm run e2e", | ||
"e2e": "cypress-runner run --nospa --path dist" | ||
}, | ||
"author": "Chris Thielen", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@uirouter/cypress-runner": "latest", | ||
"typedoc": "0.14.0", | ||
"typedoc-plugin-external-module-name": "latest" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/** @module dir1 */ | ||
export * from './nest1'; |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/** @module dir1 */ /** */ | ||
export class Nest1 {} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/** @module dir2 */ | ||
export * from './nest2'; |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/** @module dir2 */ | ||
export class Nest2 {} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* @module root | ||
*/ | ||
/** for typedoc */ | ||
|
||
/** This is in the root module */ | ||
export class File1 {} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/** @module root */ | ||
/** This is also in the root module */ | ||
export class File2 {} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** @module root */ | ||
|
||
export * from './file1'; | ||
export * from './file2'; | ||
export * from './dir1'; | ||
export * from './dir2'; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"moduleResolution": "node", | ||
"module": "commonjs", | ||
"lib": ["es6", "dom"], | ||
"noImplicitAny": true, | ||
"skipLibCheck": true, | ||
"noEmit": true, | ||
"target": "es5", | ||
"typeRoots": ["typings"] | ||
}, | ||
"files": ["src/index.ts"] | ||
} |