From b1ebbad5180a26e1ba73539129c9685ecebdef43 Mon Sep 17 00:00:00 2001 From: Richard Willis Date: Tue, 12 May 2015 00:45:38 +0100 Subject: [PATCH 1/6] Initial attempt at replacing jest with mocha for testing. Refs #8 Sourcemaps aren't working correctly. Am thinking it might be easier to use karma... --- .../Footer/__tests__/Footer-test.js | 6 +- app/run-tests.jsx | 10 ++ app/stores/__tests__/BaseStore-test.js | 62 ++++---- dev-server.js | 4 +- package.json | 12 +- webpack.config.test.js | 136 ++++++++++++++++++ 6 files changed, 190 insertions(+), 40 deletions(-) create mode 100644 app/run-tests.jsx create mode 100644 webpack.config.test.js diff --git a/app/components/Footer/__tests__/Footer-test.js b/app/components/Footer/__tests__/Footer-test.js index 8d7e974..4583045 100644 --- a/app/components/Footer/__tests__/Footer-test.js +++ b/app/components/Footer/__tests__/Footer-test.js @@ -1,10 +1,8 @@ 'use strict'; import React from 'react/addons'; - -jest.dontMock('../Footer.jsx'); - import Footer from '../Footer.jsx'; +import { expect } from 'chai'; let { TestUtils } = React.addons; @@ -14,6 +12,6 @@ describe('Footer', () => {