diff --git a/test/basic.test.ts b/test/basic.test.ts index 104330aa00..5e98abf436 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -344,6 +344,9 @@ describe('automatically keyed composables', () => { expect(html).toContain('true') expect(html).not.toContain('false') }) + it('should match server-generated keys', async () => { + await expectNoClientErrors('/keyed-composables') + }) }) describe('dynamic paths', () => { diff --git a/test/fixtures/basic/pages/keyed-composables.vue b/test/fixtures/basic/pages/keyed-composables.vue index 2879009aef..0ed479f62a 100644 --- a/test/fixtures/basic/pages/keyed-composables.vue +++ b/test/fixtures/basic/pages/keyed-composables.vue @@ -1,17 +1,31 @@ - + {{ useStateTest1 === useStateTest2 }} {{ useAsyncDataTest1 === useAsyncDataTest2 }} {{ useLazyAsyncDataTest1 === useLazyAsyncDataTest2 }} {{ useFetchTest1 === useFetchTest2 }} {{ useLazyFetchTest1 === useLazyFetchTest2 }} - +
+ {{ useStateTest1 === useStateTest2 }} {{ useAsyncDataTest1 === useAsyncDataTest2 }} {{ useLazyAsyncDataTest1 === useLazyAsyncDataTest2 }} {{ useFetchTest1 === useFetchTest2 }} {{ useLazyFetchTest1 === useLazyFetchTest2 }} - +