1
0
mirror of https://github.com/kremalicious/blowfish.git synced 2024-11-22 09:47:00 +01:00

move babel config

This commit is contained in:
Matthias Kretschmann 2020-02-25 20:40:46 +01:00
parent cf6157b434
commit c3d4a7f42f
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,10 @@
import React from 'react' import React from 'react'
import { render, wait } from '@testing-library/react' import { render } from '@testing-library/react'
import Layout from '../src/renderer/Layout' import Layout from '../src/renderer/Layout'
describe('Layout', () => { describe('Layout', () => {
it('renders correctly', async () => { it('renders correctly', () => {
const { container } = render(<Layout>Hello</Layout>) const { container } = render(<Layout>Hello</Layout>)
await wait()
expect(container.firstChild).toBeInTheDocument() expect(container.firstChild).toBeInTheDocument()
}) })
}) })

View File

@ -1,4 +1,4 @@
const { devDependencies } = require('./package.json') const { devDependencies } = require('../package.json')
module.exports = { module.exports = {
presets: [ presets: [

View File

@ -1,7 +1,7 @@
module.exports = { module.exports = {
rootDir: '../', rootDir: '../',
transform: { transform: {
'^.+\\.[t|j]sx?$': 'babel-jest' '^.+\\.[t|j]sx?$': ['babel-jest', { configFile: './tests/babel.config.js' }]
}, },
moduleNameMapper: { moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy', '.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy',