From c5fe82cf698314e633374d219ef667fa16b432b2 Mon Sep 17 00:00:00 2001 From: Stephen Edgar Date: Sun, 25 Mar 2018 18:44:16 +1100 Subject: [PATCH] test: add inital tests --- __tests__/__snapshots__/index.test.js.snap | 16 ++++++++++++++++ __tests__/index.test.js | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 __tests__/__snapshots__/index.test.js.snap create mode 100644 __tests__/index.test.js diff --git a/__tests__/__snapshots__/index.test.js.snap b/__tests__/__snapshots__/index.test.js.snap new file mode 100644 index 0000000..34efaab --- /dev/null +++ b/__tests__/__snapshots__/index.test.js.snap @@ -0,0 +1,16 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`it contains expected keys 1`] = ` +Array [ + "clearMocks", + "collectCoverage", + "coverageDirectory", + "coverageReporters", + "coverageThreshold", + "moduleFileExtensions", + "setupFiles", + "testEnvironment", + "testMatch", + "verbose", +] +`; diff --git a/__tests__/index.test.js b/__tests__/index.test.js new file mode 100644 index 0000000..0210d2c --- /dev/null +++ b/__tests__/index.test.js @@ -0,0 +1,6 @@ +"use strict" + +const preset = require("../jest-preset.json"); +test('it contains expected keys', () => { + expect(Object.keys(preset)).toMatchSnapshot(); +});