Skip to content

Commit

Permalink
docs(tests): docs qa
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed May 23, 2022
1 parent 8afd47e commit 35cd18f
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion __tests__/config/global-fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Test Configuration - Global Fixtures
* @module tests/config/globalFixtures
* @module tests/config/global-fixtures
* @see https://mochajs.org/#global-setup-fixtures
* @see https://mochajs.org/#global-teardown-fixtures
*/
Expand Down
15 changes: 11 additions & 4 deletions __tests__/config/root-hooks.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
/**
* @file Test Configuration - Root Hooks
* @module tests/config/rootHooks
* @see https://mochajs.org/#defining-a-root-hook-plugin
* @module tests/config/root-hooks
*/

import type { RootHookObject } from 'mocha'
import { inspect } from 'node:util'

/**
* Root hooks.
*
* These functions run before or after **every test in every file**.
*
* @see https://mochajs.org/#available-root-hooks
* @see https://mochajs.org/#defining-a-root-hook-plugin
*/
export const mochaHooks: RootHookObject = {
/**
* Handles the test environment state after all tests are run.
Expand All @@ -25,8 +32,8 @@ export const mochaHooks: RootHookObject = {
* - Resetting the history of all [stubs][1] created via the default sandbox
* - Restoring all [fakes][2] created via the default sandbox
*
* [1]: https://sinonjs.org/releases/v11.1.2/stubs
* [2]: https://sinonjs.org/releases/v11.1.2/fakes
* [1]: https://sinonjs.org/releases/v14/stubs
* [2]: https://sinonjs.org/releases/v14/fakes
*
* @param {Mocha.Context} this - Current test context
* @return {void} Nothing when complete
Expand Down
2 changes: 1 addition & 1 deletion __tests__/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Entry Point - Global Test Interfaces
* @file Entry Point - Test Environment Interfaces
* @module tests/interfaces
*/

Expand Down
4 changes: 2 additions & 2 deletions __tests__/interfaces/report.interface.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* @file Test Interfaces - Report
* @file Test Environment Interfaces - Report
* @module tests/interfaces/Report
*/

import type { MochaSuiteSummary, MochaTestSummary } from '@tests/types'
import type { MochaSuiteSummary, MochaTestSummary } from '../types'

/**
* Custom test reporter output.
Expand Down
2 changes: 1 addition & 1 deletion __tests__/interfaces/reporter-options.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Test Interfaces - ReporterOptions
* @file Test Environment Interfaces - ReporterOptions
* @module tests/interfaces/ReporterOptions
*/

Expand Down
2 changes: 1 addition & 1 deletion __tests__/interfaces/spy.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Test Interfaces - Spy
* @file Test Environment Interfaces - Spy
* @module tests/interfaces/Spy
*/

Expand Down
2 changes: 1 addition & 1 deletion __tests__/interfaces/testcase-called.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Test Interfaces - TestcaseCalled
* @file Test Environment Interfaces - TestcaseCalled
* @module tests/interfaces/TestcaseCalled
*/

Expand Down
2 changes: 1 addition & 1 deletion __tests__/interfaces/testcase-fn.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Test Interfaces - TestcaseFn
* @file Test Environment Interfaces - TestcaseFn
* @module tests/interfaces/TestcaseFn
*/

Expand Down
2 changes: 1 addition & 1 deletion __tests__/interfaces/testcase.interface.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Test Interfaces - Testcase
* @file Test Environment Interfaces - Testcase
* @module tests/interfaces/Testcase
*/

Expand Down
2 changes: 1 addition & 1 deletion __tests__/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Entry Point - Test Type Definitions
* @file Entry Point - Test Environment Types
* @module tests/types
*/

Expand Down
2 changes: 1 addition & 1 deletion __tests__/types/mocha-suite-summary.type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Test Type Definitions - MochaSuiteSummary
* @file Test Environment Types - MochaSuiteSummary
* @module tests/types/MochaSuiteSummary
*/

Expand Down
2 changes: 1 addition & 1 deletion __tests__/types/mocha-test-summary.type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file Test Type Definitions - MochaTestSummary
* @file Test Environment Types - MochaTestSummary
* @module tests/types/MochaTestSummary
*/

Expand Down

0 comments on commit 35cd18f

Please sign in to comment.