-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from universal-ember/updated-setup-docs-and-te…
…sting More docs, testing, complete setup, etc
- Loading branch information
Showing
9 changed files
with
151 additions
and
6 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
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
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,20 @@ | ||
# Helper utilities | ||
|
||
These utilities can be imported and used within your own projects, as they are already used within `kolay`. | ||
This should allow users to build their own specific set of outputs using the same underying tools that `kolay` uses. | ||
|
||
```hbs live no-shadow | ||
<APIDocs @module="declarations/plugins" @name="gitRef" @package="kolay" /> | ||
``` | ||
|
||
```hbs live no-shadow | ||
<APIDocs @module="declarations/plugins" @name="packageTypes" @package="kolay" /> | ||
``` | ||
|
||
```hbs live no-shadow | ||
<APIDocs @module="declarations/plugins" @name="virtualFile" @package="kolay" /> | ||
``` | ||
|
||
```hbs live no-shadow | ||
<APIDocs @module="declarations/plugins" @name="generateTypeDocJSON" @package="kolay" /> | ||
``` |
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
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,24 @@ | ||
# Testing | ||
|
||
Testing will require a setup phase so that only your tests that actually need the kolay behavior will cause the kolay behavior to be used. | ||
|
||
If using qunit, | ||
|
||
```js | ||
import { setupKolay } from "kolay/test-support"; | ||
|
||
module("my test group", function (hooks) { | ||
setupRenderingTest(hooks); | ||
setupKolay(hooks, async () => ({ | ||
apiDocs: await import("kolay/api-docs:virtual"), | ||
manifest: await import("kolay/manifest:virtual"), | ||
})); | ||
|
||
test("self", async function (assert) { | ||
// ... | ||
}); | ||
}); | ||
``` | ||
|
||
In ember application tests, the `setup` method from the docs service | ||
will have already been called from the application route, so this isn't needed. |
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
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
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
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,3 +1,4 @@ | ||
export { generateTypeDocJSON } from './api-docs/typedoc.js'; | ||
export { combined as kolay } from './combined.js'; | ||
export { gitRef } from './git-ref.js'; | ||
export * as helpers from './helpers.js'; | ||
export { packageTypes, virtualFile } from './helpers.js'; |