Consolidate test fles under jest/* (#4351)

This commit is contained in:
Jaco Greeff 2021-01-11 08:29:38 +01:00 committed by GitHub
parent 477a7d4770
commit 47ff686569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 14 deletions

2
env.sh
View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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;