vitest-cucumber-plugin 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ {
2
+ "type": "module",
3
+ "devDependencies": {
4
+ "@vue/test-utils": "^2.3.2",
5
+ "jsdom": "^21.1.1",
6
+ "lodash": "^4.17.21",
7
+ "vitest": "^0.30.1"
8
+ },
9
+ "scripts": {
10
+ "test": "npx vitest run",
11
+ "postinstall": "ln -s ../../.. node_modules/vitest-cucumber-plugin"
12
+ },
13
+ "dependencies": {
14
+ "@vitejs/plugin-vue": "^4.2.1",
15
+ "uuid": "^9.0.0",
16
+ "vue": "^3.2.47"
17
+ }
18
+ }
@@ -0,0 +1,9 @@
1
+ <script setup>
2
+ import { ref } from 'vue';
3
+ const text = ref('Hello World!');
4
+ </script>
5
+
6
+ <template>
7
+ <div class="text">{{text}}</div>
8
+ <button @click="text = 'Button pressed!'">Push me!</button>
9
+ </template>
@@ -0,0 +1,15 @@
1
+ import { defineConfig } from 'vitest/config'
2
+ import vitestCucumberPlugin from 'vitest-cucumber-plugin';
3
+ import vue from '@vitejs/plugin-vue';
4
+
5
+ export default defineConfig(({ mode }) => {
6
+ const level = (mode === 'test-debug') ? 'info' : 'warn';
7
+ return {
8
+ plugins: [vue(),vitestCucumberPlugin()],
9
+ test: {
10
+ include : [ '**/*.feature' ],
11
+ cucumber : { log : { level } },
12
+ environment : 'jsdom',
13
+ },
14
+ }
15
+ });