Add unit test to the MapParser class in map_parser.js. Please refer to this CL for the original class definition: https://android-review.googlesource.com/c/platform/development/+/1760909 Test: npm run test:unit Change-Id: I2d640e9c5e27c0a012e32b4be09348034b67b235
14 lines
314 B
JavaScript
14 lines
314 B
JavaScript
const defaults = require('jest-config')
|
|
|
|
module.exports = {
|
|
preset: '@vue/cli-plugin-unit-jest',
|
|
transform: {
|
|
'^.+\\.vue$': 'vue-jest'
|
|
},
|
|
globals: {
|
|
...defaults.globals,
|
|
crypto: require('crypto'),
|
|
TextEncoder: require('util').TextEncoder,
|
|
TextDecoder: require('util').TextDecoder,
|
|
}
|
|
} |