From eca233352174adeb678385691a9d4817148d0c9a Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 26 Mar 2021 09:20:41 +0700 Subject: [PATCH] Add simple test --- jest.config.js | 7 +++++++ package.json | 5 ++++- test/simple.test.js | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 jest.config.js create mode 100644 test/simple.test.js diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..3dc8bb2 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,7 @@ +module.exports = { + clearMocks: true, + moduleFileExtensions: ["js"], + testEnvironment: "node", + testMatch: ["**/*.test.js"], + verbose: true, +}; \ No newline at end of file diff --git a/package.json b/package.json index 28e2eb4..e783387 100644 --- a/package.json +++ b/package.json @@ -22,5 +22,8 @@ "bugs": { "url": "https://github.com/CUBETIQ/data-migration-nodejs/issues" }, - "homepage": "https://github.com/CUBETIQ/data-migration-nodejs#readme" + "homepage": "https://github.com/CUBETIQ/data-migration-nodejs#readme", + "dependencies": { + "jest": "^26.6.3" + } } diff --git a/test/simple.test.js b/test/simple.test.js new file mode 100644 index 0000000..5946303 --- /dev/null +++ b/test/simple.test.js @@ -0,0 +1,3 @@ +test('simple test', () => { + expect(1).toBe(1) +}) \ No newline at end of file