Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 15, 2023
1 parent a74732f commit 8bb3b3b
Show file tree
Hide file tree
Showing 7 changed files with 926 additions and 988 deletions.
1,849 changes: 888 additions & 961 deletions package-lock.json

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,26 @@
"author": "virk,japa",
"license": "MIT",
"devDependencies": {
"@adonisjs/eslint-config": "^1.1.7",
"@adonisjs/prettier-config": "^1.1.7",
"@adonisjs/tsconfig": "^1.1.7",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@swc/core": "^1.3.68",
"@adonisjs/eslint-config": "^1.1.8",
"@adonisjs/prettier-config": "^1.1.8",
"@adonisjs/tsconfig": "^1.1.8",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@swc/core": "^1.3.84",
"@types/async-retry": "^1.4.5",
"@types/chai": "^4.3.5",
"@types/node": "^20.4.1",
"c8": "^8.0.0",
"chai": "^4.3.7",
"@types/chai": "^4.3.6",
"@types/node": "^20.6.0",
"c8": "^8.0.1",
"chai": "^4.3.8",
"cross-env": "^7.0.3",
"del-cli": "^5.0.0",
"eslint": "^8.44.0",
"glob": "^10.3.2",
"del-cli": "^5.1.0",
"eslint": "^8.49.0",
"glob": "^10.3.4",
"husky": "^8.0.3",
"np": "^8.0.4",
"prettier": "^2.8.8",
"prettier": "^3.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"dependencies": {
"@poppinss/cliui": "^6.1.1-2",
Expand Down
6 changes: 5 additions & 1 deletion src/group/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@ export class Group<Context extends Record<any, any>> extends Macroable {
},
}

constructor(public title: string, emitter: Emitter, refiner: Refiner) {
constructor(
public title: string,
emitter: Emitter,
refiner: Refiner
) {
super()
this.#emitter = emitter
this.#refiner = refiner
Expand Down
15 changes: 9 additions & 6 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,19 @@ export class Runner<Context extends Record<any, any>> extends Macroable {
#boot() {
this.#tracker = new Tracker()

this.#emitter.on('runner:start', (payload) =>
this.#tracker?.processEvent('runner:start', payload)
this.#emitter.on(
'runner:start',
(payload) => this.#tracker?.processEvent('runner:start', payload)
)
this.#emitter.on('runner:end', (payload) => this.#tracker?.processEvent('runner:end', payload))
this.#emitter.on('suite:start', (payload) =>
this.#tracker?.processEvent('suite:start', payload)
this.#emitter.on(
'suite:start',
(payload) => this.#tracker?.processEvent('suite:start', payload)
)
this.#emitter.on('suite:end', (payload) => this.#tracker?.processEvent('suite:end', payload))
this.#emitter.on('group:start', (payload) =>
this.#tracker?.processEvent('group:start', payload)
this.#emitter.on(
'group:start',
(payload) => this.#tracker?.processEvent('group:start', payload)
)
this.#emitter.on('group:end', (payload) => this.#tracker?.processEvent('group:end', payload))
this.#emitter.on('test:start', (payload) => this.#tracker?.processEvent('test:start', payload))
Expand Down
6 changes: 5 additions & 1 deletion src/suite/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ export class Suite<Context extends Record<any, any>> extends Macroable {
*/
stack: (Test<Context, any> | Group<Context>)[] = []

constructor(public name: string, emitter: Emitter, refiner: Refiner) {
constructor(
public name: string,
emitter: Emitter,
refiner: Refiner
) {
super()
this.#emitter = emitter
this.#refiner = refiner
Expand Down
2 changes: 1 addition & 1 deletion src/test/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import type {
*/
export class Test<
Context extends Record<any, any>,
TestData extends DataSetNode = undefined
TestData extends DataSetNode = undefined,
> extends Macroable {
/**
* Methods to call before the test callback is executed
Expand Down
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type DataSetNode = undefined | any[] | (() => any[] | Promise<any[]>)
*/
export type TestHooksData<Context extends Record<any, any>> = [
[test: Test<Context, any>],
[hasError: boolean, test: Test<Context, any>]
[hasError: boolean, test: Test<Context, any>],
]

/**
Expand Down Expand Up @@ -66,7 +66,7 @@ export type TestHooks<Context extends Record<any, any>> = {
*/
export type GroupHooksData<Context extends Record<any, any>> = [
[group: Group<Context>],
[hasError: boolean, group: Group<Context>]
[hasError: boolean, group: Group<Context>],
]

/**
Expand All @@ -92,7 +92,7 @@ export type GroupHooks<Context extends Record<any, any>> = {
*/
export type SuiteHooksData<Context extends Record<any, any>> = [
[suite: Suite<Context>],
[hasError: boolean, suite: Suite<Context>]
[hasError: boolean, suite: Suite<Context>],
]

/**
Expand Down

0 comments on commit 8bb3b3b

Please sign in to comment.