From 75597ac2b51ba62bee33f72a7b55a549cf43a16f Mon Sep 17 00:00:00 2001 From: "Arul.Nambi" Date: Wed, 11 Jul 2018 14:19:41 -0400 Subject: Refactoring test scripts Moving the test scripts under one folder and restucting them so that the clutter can be avoided in the src folder. Issue-ID: AAI-1371 Change-Id: I41b34acbe79a7a3409f2990f11492614f7ef9c5a Signed-off-by: Arul.Nambi --- scripts/test/fileMock.js | 1 + scripts/test/setupTests.js | 5 +++++ scripts/test/styleMock.js | 1 + 3 files changed, 7 insertions(+) create mode 100644 scripts/test/fileMock.js create mode 100644 scripts/test/setupTests.js create mode 100644 scripts/test/styleMock.js (limited to 'scripts') diff --git a/scripts/test/fileMock.js b/scripts/test/fileMock.js new file mode 100644 index 0000000..86059f3 --- /dev/null +++ b/scripts/test/fileMock.js @@ -0,0 +1 @@ +module.exports = 'test-file-stub'; diff --git a/scripts/test/setupTests.js b/scripts/test/setupTests.js new file mode 100644 index 0000000..7237dc9 --- /dev/null +++ b/scripts/test/setupTests.js @@ -0,0 +1,5 @@ +import { configure } from 'enzyme'; +import Adapter from 'enzyme-adapter-react-15'; +import 'jest-enzyme'; + +configure({ adapter: new Adapter() }); diff --git a/scripts/test/styleMock.js b/scripts/test/styleMock.js new file mode 100644 index 0000000..f053ebf --- /dev/null +++ b/scripts/test/styleMock.js @@ -0,0 +1 @@ +module.exports = {}; -- cgit