Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 8a1e82c

Browse files
committed
get tests passing
1 parent eec753b commit 8a1e82c

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

package.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,24 @@
6363
"transform-class-properties",
6464
"transform-export-extensions",
6565
"transform-object-rest-spread"
66-
]
66+
],
67+
"env": {
68+
"test": {
69+
"presets": [
70+
[
71+
"env",
72+
{
73+
"modules": "commonjs"
74+
}
75+
]
76+
],
77+
"plugins": [
78+
"transform-class-properties",
79+
"transform-export-extensions",
80+
"transform-object-rest-spread"
81+
]
82+
}
83+
}
6784
},
6885
"eslintConfig": {
6986
"parser": "babel-eslint",
@@ -88,6 +105,12 @@
88105
"no-unused-vars": 2
89106
}
90107
},
108+
"jest": {
109+
"transformIgnorePatterns": [
110+
"/node_modules(?!/@bufferapp/components)/"
111+
],
112+
"verbose": true
113+
},
91114
"publishConfig": {
92115
"access": "public"
93116
}

test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { reducer, actions, actionTypes } from './index'
1+
import { reducer, actions, actionTypes } from '../src/index'
22

33
describe('ProfileSidebar', () => {
44
it('should export reducer', () => {

test/reducer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import deepFreeze from 'deep-freeze'
2-
import reducer from './reducer'
2+
import reducer from '../src/reducer'
33

44
describe('reducer', () => {
55
it('should initialize default state', () => {

0 commit comments

Comments
 (0)