From 021b6e975f6a263b96074502cabe4baf0eb6f875 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 30 Aug 2019 10:36:23 +0200 Subject: Add testing --- .circleci/config.yml | 33 ++++++++++++++++++++++++ components/Footer.vue | 14 ++++------ components/NavLink.vue | 53 ++++++++++++++++++++++++++++++++++++++ components/NavLink/NavLink.test.js | 20 -------------- components/NavLink/index.vue | 53 -------------------------------------- test/Logo.spec.js | 9 ------- test/NavLink.test.js | 15 +++++++++++ 7 files changed, 106 insertions(+), 91 deletions(-) create mode 100644 .circleci/config.yml create mode 100644 components/NavLink.vue delete mode 100644 components/NavLink/NavLink.test.js delete mode 100644 components/NavLink/index.vue delete mode 100644 test/Logo.spec.js create mode 100644 test/NavLink.test.js diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..447bd4b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,33 @@ +version: 2 +jobs: + build: + docker: + # specify the version you desire here + - image: circleci/node:12.7.10 + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/mongo:3.4.4 + + working_directory: ~/repo + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + keys: + - v1-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - v1-dependencies- + + - run: npm install + + - save_cache: + paths: + - node_modules + key: v1-dependencies-{{ checksum "package.json" }} + + # run tests! + - run: npm test diff --git a/components/Footer.vue b/components/Footer.vue index 1cdad44..69ea76a 100644 --- a/components/Footer.vue +++ b/components/Footer.vue @@ -2,14 +2,10 @@