Skip to content

Commit fc2218c

Browse files
committed
chore: setup some linting+tests for greenkeeper
1 parent 9013320 commit fc2218c

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

Diff for: .circleci/config.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:8.10
6+
steps:
7+
- checkout
8+
- run: yarn install
9+
- run: yarn build
10+
test:
11+
docker:
12+
- image: circleci/node:8.10
13+
steps:
14+
- checkout
15+
- run: yarn install
16+
- run: yarn lint
17+
- run: yarn test
18+
- run: yarn test:parse
19+
- run: yarn test:html
20+
workflows:
21+
version: 2
22+
build_and_test:
23+
jobs:
24+
- build
25+
- test

Diff for: package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
"tail:html": "serverless logs --function parseHtml --tail",
1818
"test": "jest",
1919
"test:watch": "jest --watch",
20-
"test:deploy": "cd api_check && MIX_ENV=dev_deploy mix test",
21-
"test:deploy:prod": "cd api_check && MIX_ENV=prod_deploy mix test",
2220
"build": "serverless webpack",
23-
"watch:nytimes": "serverless invoke local --watch --function mercuryParser --path fixtures/nytimes.json",
24-
"watch:html": "serverless invoke local --watch --function parseHtml --path fixtures/html.json"
21+
"test:parse": "serverless invoke local --function mercuryParser --path fixtures/nytimes.json",
22+
"test:html": "serverless invoke local --function parseHtml --path fixtures/html.json"
2523
},
2624
"dependencies": {
2725
"@postlight/mercury-parser": "^1.1.0",

Diff for: src/index.test.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
describe('verify tests are working', () => {
2+
it('tests truth', () => {
3+
const args = "";
4+
const expected = "";
5+
expect((args)).toEqual(expected)
6+
});
7+
});

0 commit comments

Comments
 (0)