Skip to content

bryanleetc/nsvue-unit-testing

Repository files navigation

NativeScript-Vue Unit Testing Example

A basic NativeScript Vue app demonstrating unit testing with Jest and Vue Test Utils

This replaces the official TNS unit test stack with Jest and Vue Test Utils. If you've stumbled upon this sample app from Google, you may want to check out the original blog post behind this, which explains in depth how to use Jest / Vue Test Utils with NativeScript Vue.

Testing

# Run Jest
yarn test

Usage

# Install dependencies
npm install

# Preview on device
tns preview

# Build, watch for changes and run the application
tns run

# Build, watch for changes and debug the application
tns debug <platform>

# Build for production
tns build <platform> --env.production

About

A basic NativeScript Vue app demonstrating unit testing with Jest and Vue Test Utils

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published