Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Commit 08bec54

Browse files
Implement unit tests, add Babel and Jest, configure CircleCI integration
1 parent 904e9bf commit 08bec54

File tree

7 files changed

+5876
-802
lines changed

7 files changed

+5876
-802
lines changed

.babelrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
[
44
"@babel/preset-env",
55
{
6-
"debug": true,
7-
"modules": false,
6+
"debug": false,
87
"targets": {
98
"browsers": [
109
"last 3 versions"

.circleci/.circleci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:10.7
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
17+
working_directory: ~/repo
18+
19+
steps:
20+
- checkout
21+
22+
# Download and cache dependencies
23+
- restore_cache:
24+
keys:
25+
- v1-dependencies-{{ checksum "package.json" }}
26+
# fallback to using the latest cache if no exact match is found
27+
- v1-dependencies-
28+
29+
- run: yarn install
30+
31+
- save_cache:
32+
paths:
33+
- node_modules
34+
key: v1-dependencies-{{ checksum "package.json" }}
35+
36+
# run tests!
37+
- run: npm run test

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
2+
"verbose": true
33
}

0 commit comments

Comments
 (0)