donal
2018-03-22 a982cf757a24598c92c4e1a9210b87be22c8f5c4
WIP -  trying to get jest to see all files = fail
1 files added
1 files modified
32 ■■■■■ changed files
jest.config.js 2 ●●● patch | view | raw | blame | history
src/components/TodoList.vue 30 ●●●●● patch | view | raw | blame | history
jest.config.js
@@ -15,7 +15,7 @@
  snapshotSerializers: ["jest-serializer-vue"],
  collectCoverage: true,
  collectCoverageFrom: [
    "src/**/*.{js,vue}",
    "src/**/*.{js,vue,json,jsx}",
    "!src/**/*.test.{js,jsx}",
    "!<rootDir>/node_modules/"
  ],
src/components/TodoList.vue
New file
@@ -0,0 +1,30 @@
<template>
    <ul>
        <li v-for="item in items" :key="item">
            {{ item.message }}
        </li>
    </ul>
</template>
<script>
export default {
  name: "TodoList",
  props: {
    item: [
        { message: "todo list" }
    ]
  }
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
</style>