Skip to content

Commit

Permalink
chore: re-enable windows testing (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Mar 20, 2023
1 parent 9840130 commit 1a5c3d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ jobs:
fail-fast: false
matrix:
# Run the testing suite on each major OS with the latest LTS release of Node.js
# @TODO add windows when it works
# platform: [macos-latest, ubuntu-latest, window-latest]
platform: [macos-latest, ubuntu-latest]
platform: [macos-latest, ubuntu-latest, windows-latest]
node-version: [lts/*]
# It makes sense to also test the oldest, and latest, versions of Node.js, on ubuntu-only since it's the fastest CI runner
include:
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/cli.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Vitest Snapshot v1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`should build \`custom-dist\` package 1`] = `
"'use strict';
Expand Down
11 changes: 8 additions & 3 deletions test/extractModuleBlocks.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import outdent from 'outdent'
import {EOL} from 'node:os'
import _outdent from 'outdent'
import {expect, test} from 'vitest'
import {extractModuleBlocks} from '../src/node/tasks/dts/extractModuleBlocks'

const outdent = _outdent({newline: EOL})

test('extract module block', () => {
const blocks = extractModuleBlocks(
`
Expand Down Expand Up @@ -55,15 +58,17 @@ test('extract module block', () => {

expect(blocks.length).toEqual(3)

expect(blocks[0]).toEqual(outdent`
expect(blocks[0]).toEqual(
outdent`
declare module X {
/**
* @beta
**/
interface A {
a: string
}
}`)
}`
)

expect(blocks[1]).toEqual(outdent`
/** @public */
Expand Down

0 comments on commit 1a5c3d9

Please sign in to comment.