Skip to content
Permalink
Browse files

fix: pass file to automated tests

  • Loading branch information...
dariocravero committed Nov 12, 2017
1 parent c642686 commit 2483d8059903e3f49eb9142b048dd37679bcb98d
Showing with 3 additions and 1 deletion.
  1. +3 −1 automated-ui-testing.js
@@ -1,4 +1,3 @@
import 'react-native-mock/mock'
import { morph } from 'views-morph'
import { shallow } from 'enzyme'
import fs from 'fs'
@@ -22,6 +21,9 @@ paths.forEach(fileRaw => {
const code = morph(fs.readFileSync(testsFile, 'utf8'), {
as: 'tests',
name: `${viewName}.view.tests`,
file: {
raw: testsFile,
},
}).code.replace(/export const /g, 'out.')

const out = {}

0 comments on commit 2483d80

Please sign in to comment.
You can’t perform that action at this time.