Skip to content

Commit

Permalink
feat: make module that tells you if npm package with version has been…
Browse files Browse the repository at this point in the history
… deployed (#1)
  • Loading branch information
levibostian committed Sep 30, 2023
1 parent abfbb8a commit 37eeacf
Show file tree
Hide file tree
Showing 10 changed files with 3,891 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@


on:
pull_request:
push:
branches: [main, beta]

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run test

run-compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run compile
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
19 changes: 19 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { defaults: tsjPreset } = require('ts-jest/presets')
// const { defaultsESM: tsjPreset } = require('ts-jest/presets')
// const { jsWithTs: tsjPreset } = require('ts-jest/presets')
// const { jsWithTsESM: tsjPreset } = require('ts-jest/presets')
// const { jsWithBabel: tsjPreset } = require('ts-jest/presets')
// const { jsWithBabelESM: tsjPreset } = require('ts-jest/presets')

/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
resetMocks: true,
collectCoverage: true,
clearMocks: true,
restoreMocks: true, // resets spys
// [...]
transform: {
...tsjPreset.transform,
// [...]
},
}
Loading

0 comments on commit 37eeacf

Please sign in to comment.