Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.38 KB

SETTING_UP.md

File metadata and controls

32 lines (18 loc) · 1.38 KB

Project set up decisions

Documenting the steps to create a Vue/ TypeScript skeleton with linting and tests.

Testing

Decision Opted to explore testing functionality provided by V3 of Nuxtjs. This uses @nuxt/test-utils-edge and vitest as its test runner.

Note: these testing mechanisms are still experimental, subject to change and are not production ready.

At present there is no Vue3 support for testing, see examples of test set ups here.

More information on nuxt test utils generally, here.

Rationale Decided to trial out the test tools provided by Nuxtjs community, as previous experience of trying to test the behaviour using other testing tools has been complex.

Investigated using Jest with Vue3 testing but the configuration alone seems incredibly complex, see more here and in the demo repo here.

Package.json

Had to do this strange https://github.com/nuxt/framework/issues/2919

Useful learning resources on setting up Nuxt

https://www.youtube.com/watch?v=WyiOVGLyrfI

Debugging test setup

https://github.com/nuxt/framework/issues/3252