generated from AthennaIO/Template
-
-
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 #16 from AthennaIO/develop
Migrate project to TS
- Loading branch information
Showing
73 changed files
with
4,650 additions
and
5,955 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 |
---|---|---|
|
@@ -20,9 +20,14 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Transpile code | ||
run: npm run build | ||
|
||
- name: Automatic GitHub Release | ||
uses: justincy/[email protected] | ||
id: release | ||
|
||
- name: Publish to NPM Registry | ||
run: npm publish --access public | ||
if: steps.release.outputs.released == 'true' | ||
|
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,25 @@ | ||
/** | ||
* @athenna/common | ||
* | ||
* (c) João Lenon <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare module '@japa/assert' { | ||
export interface Assert { | ||
throws(fn: () => void, errType: any, message?: string): void | ||
doesNotThrows(fn: () => void, errType: any, message?: string): void | ||
rejects( | ||
fn: () => void | Promise<void>, | ||
errType: any, | ||
message?: string, | ||
): Promise<void> | ||
doesNotRejects( | ||
fn: () => void | Promise<void>, | ||
errType: any, | ||
message?: string, | ||
): Promise<void> | ||
} | ||
} |
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,8 +1,19 @@ | ||
/** | ||
* @athenna/common | ||
* | ||
* (c) João Lenon <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
import { pathToFileURL } from 'url' | ||
import { assert } from '@japa/assert' | ||
import { specReporter } from '@japa/spec-reporter' | ||
import { processCliArgs, configure, run } from '@japa/runner' | ||
|
||
import('./japaTypes.js') | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Configure tests | ||
|
@@ -17,10 +28,12 @@ import { processCliArgs, configure, run } from '@japa/runner' | |
| Please consult japa.dev/runner-config for the config docs. | ||
*/ | ||
|
||
process.env.IS_TS = 'true' | ||
|
||
configure({ | ||
...processCliArgs(process.argv.slice(2)), | ||
...{ | ||
files: ['tests/**/*Test.js'], | ||
files: ['tests/**/*Test.ts'], | ||
plugins: [assert()], | ||
reporters: [specReporter()], | ||
importer: filePath => import(pathToFileURL(filePath).href), | ||
|
Oops, something went wrong.