Skip to content

Commit 133528a

Browse files
authored
chore(tests): Move unit testing to TypeScript (#103)
* chore(tests): Move unit testing to TypeScript This also carries: + feat(DictionaryDataSource): Relax Predicate type to also accept numbers as keys * fix: Add quotation marks to glob pattern
1 parent 2ec34ab commit 133528a

19 files changed

Lines changed: 426 additions & 119 deletions

.github/workflows/dispatch-feature-pr.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,19 @@ on:
1313
- '22'
1414
- '24'
1515
default: '24'
16-
debug:
17-
description: Enable debug logging.
16+
log-context:
17+
description: Log GitHub context.
1818
required: false
19-
type: choice
20-
default: 'false'
21-
options:
22-
- 'true'
23-
- 'false'
19+
type: boolean
20+
default: false
2421

2522
jobs:
2623
log-context:
2724
name: Log GitHub Context
2825
runs-on: ubuntu-latest
29-
if: ${{ inputs.debug == 'true' }}
26+
if: ${{ inputs.log-context }}
3027
steps:
31-
- name: GitHub Context JSON
32-
shell: pwsh
33-
run: |
34-
$json = '${{ toJSON(github) }}'
35-
Write-Host "GitHub Context`n`n$($json)" -BackgroundColor DarkYellow -foregroundColor Black
36-
37-
- name: GitHub Context (Table)
28+
- name: GitHub Context
3829
shell: pwsh
3930
run: |
4031
function Write-Line(
@@ -61,8 +52,8 @@ jobs:
6152
}
6253
}
6354
function Output-Object($obj, $title = 'Root Level (github)') {
64-
Write-Line "$title" -ForegroundColor Cyan -BackgroundColor DarkGray
65-
Write-Line ("-" * $title.Length) -ForegroundColor Cyan -BackgroundColor DarkGray
55+
Write-Line "$title" -ForegroundColor Black -BackgroundColor DarkYellow
56+
Write-Line ("-" * $title.Length) -ForegroundColor Black -BackgroundColor DarkYellow
6657
$props = $obj.PSObject.Properties
6758
if ($null -eq $obj -or $null -eq $props -or $props.Length -eq 0) {
6859
Write-Warning "No properties found in $title.`n"
@@ -90,4 +81,5 @@ jobs:
9081
secrets: inherit
9182
with:
9283
node-version: ${{ inputs.node-version }}
93-
build-script: ${{ inputs.debug == 'true' && 'build:debug' || 'build' }}
84+
build: false
85+
pwsh: false

.github/workflows/feature-pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ jobs:
1010
name: Unit Testing
1111
uses: WJSoftware/cicd/.github/workflows/npm-test.yml@v0.4
1212
secrets: inherit
13+
with:
14+
build: false
15+
pwsh: false
16+
node-version: '24'

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
type: string
2020
default: latest
2121
dry-run:
22-
description: Performs a dry run of the publish.
22+
description: Just dry-run the publish process.
2323
required: false
2424
type: boolean
2525
default: false

0 commit comments

Comments
 (0)