Commit 61b02cb9 authored by Sendya's avatar Sendya

chore: add config

parent 823cd30f
module.exports = {
env: {
test: {
presets: [['@babel/preset-env', { targets: { node: true } }]],
plugins: [
['@vue/babel-plugin-jsx', { mergeProps: false }],
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-transform-object-assign',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-modules-commonjs',
],
},
},
};
import { mount } from '@vue/test-utils';
import { PageContainer } from '../src/PageContainer';
import { Tag, Button } from 'ant-design-vue';
export const sleep = (timeout = 0) => new Promise(resolve => setTimeout(resolve, timeout));
import { sleep } from './utils';
describe('PageContainer', () => {
......
export const sleep = (timeout = 0) => new Promise(resolve => setTimeout(resolve, timeout));
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment