1
0
Fork 0
mirror of https://github.com/actions/toolkit synced 2025-05-09 16:43:02 +00:00

Add working Jest & TypeScript config

- Jest now uses ts-jest for transforms
- TypeScript compilation via `lerna run tsc`
This commit is contained in:
Jonathan Clem 2019-04-19 15:15:34 -04:00
parent 97bc7918f4
commit f026c43b81
No known key found for this signature in database
GPG key ID: 48C5B22E9FD6E80F
10 changed files with 124 additions and 27 deletions

View file

@ -1,9 +0,0 @@
'use strict';
// const github = require('..');
describe('@actions/github', () => {
it('needs tests', () => {
});
});

View file

@ -0,0 +1,7 @@
import { github } from '../src/github';
describe('@actions/github', () => {
it('needs tests', () => {
expect(github()).toBe(true)
});
});

View file

@ -1,7 +0,0 @@
'use strict';
module.exports = github;
function github() {
// TODO
}

View file

@ -24,7 +24,8 @@
"url": "git+https://github.com/actions/toolkit.git"
},
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc"
},
"bugs": {
"url": "https://github.com/actions/toolkit/issues"

View file

@ -0,0 +1,3 @@
export function github() {
return true
}

View file

@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"outDir": "./lib",
"rootDir": "./src"
},
"include": [
"./src"
]
}