Skip to content

Commit 3e64bcf

Browse files
authored
refactor: merge next to develop (#8)
1 parent 13ebafa commit 3e64bcf

11 files changed

Lines changed: 91 additions & 16608 deletions

File tree

.github/workflows/checks.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: checks
2+
on:
3+
- push
4+
- pull_request
5+
6+
jobs:
7+
test:
8+
uses: edge-js/.github/.github/workflows/test.yml@main
9+
10+
lint:
11+
uses: edge-js/.github/.github/workflows/lint.yml@main
12+
13+
typecheck:
14+
uses: edge-js/.github/.github/workflows/typecheck.yml@main

.github/workflows/test.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ throw new EdgeError('message', 'status', {
2727
})
2828
```
2929

30-
[github-actions-image]: https://img.shields.io/github/workflow/status/edge-js/error/test?style=for-the-badge
31-
[github-actions-url]: https://github.com/edge-js/error/actions/workflows/test.yml "github-actions"
30+
[github-actions-image]: https://img.shields.io/github/actions/workflow/status/edge-js/error/checks.yml?style=for-the-badge
31+
[github-actions-url]: https://github.com/edge-js/error/actions/workflows/checks.yml "github-actions"
3232

3333
[npm-image]: https://img.shields.io/npm/v/edge-error.svg?style=for-the-badge&logo=npm
3434
[npm-url]: https://npmjs.org/package/edge-error "npm"

bin/japa_types.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

bin/test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { assert } from '@japa/assert'
2-
import { specReporter } from '@japa/spec-reporter'
3-
import { runFailedTests } from '@japa/run-failed-tests'
4-
import { processCliArgs, configure, run } from '@japa/runner'
2+
import { processCLIArgs, configure, run } from '@japa/runner'
53

64
/*
75
|--------------------------------------------------------------------------
@@ -16,13 +14,11 @@ import { processCliArgs, configure, run } from '@japa/runner'
1614
|
1715
| Please consult japa.dev/runner-config for the config docs.
1816
*/
17+
processCLIArgs(process.argv.slice(2))
1918
configure({
20-
...processCliArgs(process.argv.slice(2)),
2119
...{
2220
files: ['tests/**/*.spec.ts'],
23-
plugins: [assert(), runFailedTests()],
24-
reporters: [specReporter()],
25-
importer: (filePath) => import(filePath),
21+
plugins: [assert()],
2622
},
2723
})
2824

index.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@
77
* file that was distributed with this source code.
88
*/
99

10-
import { ExceptionOptions } from './types'
10+
import type { ExceptionOptions } from './types.js'
1111

1212
export class EdgeError extends Error {
13-
public line: number
14-
public col: number
15-
public filename: string
13+
line: number
14+
col: number
15+
filename: string
1616

17-
constructor(public message: string, public code: string, options: ExceptionOptions) {
17+
constructor(
18+
public message: string,
19+
public code: string,
20+
options: ExceptionOptions
21+
) {
1822
super(message)
1923
this.line = options.line
2024
this.col = options.col

0 commit comments

Comments
 (0)