Skip to content

Commit

Permalink
Merge pull request #92 from nimblehq/release/1.1.0
Browse files Browse the repository at this point in the history
Release - 1.1.0
  • Loading branch information
hoangmirs authored Jul 29, 2022
2 parents efa8378 + 0fab414 commit 2168a3b
Show file tree
Hide file tree
Showing 54 changed files with 14,260 additions and 9,122 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@ jobs:
run: npm ci

- name: Run tests
run: npm run test
run: npm run test '--ignore-scripts' -- --watchAll=false --coverage --ci

- name: Upload test coverage
uses: actions/upload-artifact@v3
with:
name: jest-coverage
path: coverage/coverage-final.json
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/dist
/lib
/tmp
node_modules
/node_modules
oclif.manifest.json
yarn.lock
/coverage
12 changes: 0 additions & 12 deletions .mocharc.json

This file was deleted.

13 changes: 7 additions & 6 deletions bin/dev
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');

const oclif = require('@oclif/core')
const oclif = require('@oclif/core');

const path = require('path')
const project = path.join(__dirname, '..', 'tsconfig.json')
const project = path.join(__dirname, '..', 'tsconfig.json');

// In dev mode -> use ts-node and dev plugins
process.env.NODE_ENV = 'development'
process.env.NODE_ENV = 'development';

require('ts-node').register({project})
require('ts-node').register({project});

// In dev mode, always show stack traces
oclif.settings.debug = true;

// Start the CLI
oclif.run().then(oclif.flush).catch(oclif.Errors.handle)
oclif.run().then(oclif.flush).catch(oclif.Errors.handle);
18 changes: 18 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.ts'],
verbose: true,
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/*.d.ts',
'!src/index.ts',
],
globals: {
"ts-jest": {
diagnostics: false
}
},
};
Loading

0 comments on commit 2168a3b

Please sign in to comment.