diff --git a/test/basic.generate.test.js b/test/basic.generate.test.js
index daa74f0058..9309b5eca5 100644
--- a/test/basic.generate.test.js
+++ b/test/basic.generate.test.js
@@ -173,6 +173,12 @@ test.serial('/-ignored', async t => {
t.true(error.response.body.includes('Cannot GET /-ignored'))
})
+test.serial('/ignored.test', async t => {
+ const error = await t.throws(rp(url('/ignored.test')))
+ t.true(error.statusCode === 404)
+ t.true(error.response.body.includes('Cannot GET /ignored.test'))
+})
+
// Close server and ask nuxt to stop listening to file changes
test.after.always('Closing server', async t => {
await server.close()
diff --git a/test/fixtures/basic/middleware/ignored.test.js b/test/fixtures/basic/middleware/ignored.test.js
new file mode 100644
index 0000000000..99e4a7b2b1
--- /dev/null
+++ b/test/fixtures/basic/middleware/ignored.test.js
@@ -0,0 +1,3 @@
+export default function () {
+ throw new Error('Should be ignored')
+}
diff --git a/test/fixtures/basic/pages/ignored.test.vue b/test/fixtures/basic/pages/ignored.test.vue
new file mode 100644
index 0000000000..33c4bfdb03
--- /dev/null
+++ b/test/fixtures/basic/pages/ignored.test.vue
@@ -0,0 +1,13 @@
+
+
+ Should be ignored
+
+
+
+
+
+
diff --git a/test/fixtures/basic/store/ignored.test.js b/test/fixtures/basic/store/ignored.test.js
new file mode 100644
index 0000000000..b96c60ff82
--- /dev/null
+++ b/test/fixtures/basic/store/ignored.test.js
@@ -0,0 +1,3 @@
+export const state = () => ({
+ error: 'Should be ignored'
+})