This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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
4946e8a
commit 2747221
Showing
10 changed files
with
1,649 additions
and
379 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
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,9 +1,9 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"printWidth": 80, | ||
"semi": true, | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"endOfLine": "lf" | ||
} | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"printWidth": 80, | ||
"semi": true, | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"endOfLine": "lf" | ||
} |
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,39 +1,44 @@ | ||
![Supported Version](https://img.shields.io/github/package-json/dependency-version/Mochi-Team/runner/dev/%40mochiapp/js/main) | ||
|
||
# @mochiapp/runner | ||
|
||
> A test runner used for Mochi modules. | ||
## Installation | ||
|
||
Using pnpm: | ||
|
||
```bash | ||
pnpm add -D @mochiapp/runner | ||
``` | ||
|
||
Using npm: | ||
|
||
```bash | ||
npm install --save-dev @mochiapp/runner | ||
``` | ||
|
||
Using yarn: | ||
|
||
```bash | ||
yarn add -D @mochiapp/runner | ||
``` | ||
|
||
## Example | ||
|
||
In a test file: | ||
|
||
```js | ||
import Source from '../src/source'; | ||
import runner from '@mochiapp/runner'; | ||
|
||
const source = runner(Source); | ||
|
||
test('fetch filters', () => { | ||
return source.searchFilters() | ||
.then(r => { | ||
assert.equal(r.length, 1); | ||
}); | ||
return source.searchFilters().then((r) => { | ||
assert.equal(r.length, 1); | ||
}); | ||
}); | ||
|
||
// Rest of the tests... | ||
``` | ||
|
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
Oops, something went wrong.