mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-12-26 14:47:53 +01:00
move babel config
This commit is contained in:
parent
cf6157b434
commit
c3d4a7f42f
@ -1,11 +1,10 @@
|
||||
import React from 'react'
|
||||
import { render, wait } from '@testing-library/react'
|
||||
import { render } from '@testing-library/react'
|
||||
import Layout from '../src/renderer/Layout'
|
||||
|
||||
describe('Layout', () => {
|
||||
it('renders correctly', async () => {
|
||||
it('renders correctly', () => {
|
||||
const { container } = render(<Layout>Hello</Layout>)
|
||||
await wait()
|
||||
expect(container.firstChild).toBeInTheDocument()
|
||||
})
|
||||
})
|
||||
|
@ -1,4 +1,4 @@
|
||||
const { devDependencies } = require('./package.json')
|
||||
const { devDependencies } = require('../package.json')
|
||||
|
||||
module.exports = {
|
||||
presets: [
|
@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
rootDir: '../',
|
||||
transform: {
|
||||
'^.+\\.[t|j]sx?$': 'babel-jest'
|
||||
'^.+\\.[t|j]sx?$': ['babel-jest', { configFile: './tests/babel.config.js' }]
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy',
|
||||
|
Loading…
Reference in New Issue
Block a user