Consolidate test fles under jest/* (#4351)
This commit is contained in:
parent
477a7d4770
commit
47ff686569
2
env.sh
2
env.sh
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2017-2020 @polkadot/apps authors & contributors
|
||||
# Copyright 2017-2021 @polkadot/apps authors & contributors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# This script is used when the docker container starts and does the magic to
|
||||
|
||||
@ -19,7 +19,7 @@ const defaultConfig = {
|
||||
'@polkadot/apps/(.*)$': '<rootDir>/packages/apps/src/$1',
|
||||
'\\.(css|less)$': 'empty/object',
|
||||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'empty/object',
|
||||
'\\.(md)$': '<rootDir>/__mocks__/fileMock.js'
|
||||
'\\.(md)$': '<rootDir>/jest/mocks/empty.js'
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'<rootDir>/node_modules'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Copyright 2019-2020 @polkadot/extension authors & contributors
|
||||
// Copyright 2019-2021 @polkadot/apps authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// eslint-disable-line
|
||||
@ -1,11 +0,0 @@
|
||||
// Copyright 2017-2021 @polkadot/apps authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
const Adapter = require('enzyme-adapter-react-16');
|
||||
const Enzyme = require('enzyme');
|
||||
|
||||
Enzyme.configure({
|
||||
adapter: new Adapter()
|
||||
});
|
||||
|
||||
module.exports = Enzyme;
|
||||
Loading…
Reference in New Issue
Block a user