Skip to content

Commit

Permalink
Merge pull request #98 from AthennaIO/develop
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
jlenon7 committed Sep 7, 2023
2 parents f0ed2e9 + 6aa4df9 commit f93c30f
Show file tree
Hide file tree
Showing 30 changed files with 106 additions and 105 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ build
*.js
*.d.ts
*.js.map
!tests/stubs/**/*.js
!tests/stubs/**/*.d.ts
!tests/stubs/**/*.js.map
!tests/fixtures/**/*.js
!tests/fixtures/**/*.d.ts
!tests/fixtures/**/*.js.map

# IDE
.idea
Expand Down
103 changes: 52 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/test",
"version": "4.4.0",
"version": "4.5.0",
"description": "The Athenna test runner. Built on top of Japa.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down Expand Up @@ -54,11 +54,11 @@
"@japa/run-failed-tests": "^1.1.0",
"@japa/runner": "^2.2.2",
"@japa/spec-reporter": "^1.3.3",
"@types/sinon": "^10.0.15",
"@types/sinon": "^10.0.16",
"sinon": "^15.1.0"
},
"devDependencies": {
"@athenna/common": "^4.2.0",
"@athenna/common": "^4.10.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"c8": "^8.0.0",
Expand Down Expand Up @@ -118,7 +118,7 @@
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"trailingComma": "none",
"arrowParens": "avoid",
"endOfLine": "lf",
"semi": false,
Expand Down
10 changes: 5 additions & 5 deletions src/converters/TestConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class TestConverter {
const hookHandler = this.handleHook(
method,
closure,
BeforeAllHookException,
BeforeAllHookException
)

group.setup(hookHandler)
Expand All @@ -138,7 +138,7 @@ export class TestConverter {
const hookHandler = this.handleHook(
method,
closure,
BeforeEachHookException,
BeforeEachHookException
)

group.each.setup(hookHandler)
Expand All @@ -163,7 +163,7 @@ export class TestConverter {
const hookHandler = this.handleHook(
method,
closure,
AfterAllHookException,
AfterAllHookException
)

group.teardown(hookHandler)
Expand All @@ -188,7 +188,7 @@ export class TestConverter {
const hookHandler = this.handleHook(
method,
closure,
AfterEachHookException,
AfterEachHookException
)

group.each.teardown(hookHandler)
Expand Down Expand Up @@ -221,7 +221,7 @@ export class TestConverter {
annotation,
method,
method,
this.className,
this.className
)
}
}
2 changes: 1 addition & 1 deletion src/exceptions/AfterAllHookException.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class AfterAllHookException extends Exception {
code: 'E_AFTER_ALL_HOOK',
message: error.message,
help: error.help,
stack: error.stack,
stack: error.stack
})
}
}
2 changes: 1 addition & 1 deletion src/exceptions/AfterEachHookException.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class AfterEachHookException extends Exception {
code: 'E_AFTER_EACH_HOOK',
message: error.message,
help: error.help,
stack: error.stack,
stack: error.stack
})
}
}
2 changes: 1 addition & 1 deletion src/exceptions/BeforeAllHookException.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class BeforeAllHookException extends Exception {
code: 'E_BEFORE_ALL_HOOK',
message: error.message,
help: error.help,
stack: error.stack,
stack: error.stack
})
}
}
2 changes: 1 addition & 1 deletion src/exceptions/BeforeEachHookException.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class BeforeEachHookException extends Exception {
code: 'E_BEFORE_EACH_HOOK',
message: error.message,
help: error.help,
stack: error.stack,
stack: error.stack
})
}
}
4 changes: 2 additions & 2 deletions src/globals/Assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ declare module '@japa/assert' {
rejects(
fn: () => any | Promise<any>,
errType: any,
message?: string,
message?: string
): Promise<any>
doesNotRejects(
fn: () => any | Promise<any>,
errType: any,
message?: string,
message?: string
): Promise<any>
}
}
2 changes: 1 addition & 1 deletion src/helpers/Annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class Annotation {
Reflect.defineMetadata(
'tests',
new ObjectBuilder({ referencedValues: true }),
target,
target
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/Importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class Importer {
debug(
'Skipping class registration of %s file. There is no class being exported at %s path.',
fileName,
filePath,
filePath
)

return
Expand Down
Loading

0 comments on commit f93c30f

Please sign in to comment.