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:
parent
cf6157b434
commit
c3d4a7f42f
@ -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()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const { devDependencies } = require('./package.json')
|
const { devDependencies } = require('../package.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [
|
presets: [
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user