Skip to content
A basic NativeScript Vue app demonstrating unit testing with Jest and Vue Test Utils
JavaScript Vue CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
jest
types
.gitignore
README.md
babel.config.js
jest.config.js
package-lock.json
package.json
tsconfig.json
webpack.config.js
yarn.lock

README.md

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
You can’t perform that action at this time.