diff --git a/env.sh b/env.sh index 40ea3361f2..63fed868be 100755 --- a/env.sh +++ b/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 diff --git a/jest.config.js b/jest.config.js index 7a9a970738..8102582d8a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -19,7 +19,7 @@ const defaultConfig = { '@polkadot/apps/(.*)$': '/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)$': '/__mocks__/fileMock.js' + '\\.(md)$': '/jest/mocks/empty.js' }, transformIgnorePatterns: [ '/node_modules' diff --git a/__mocks__/fileMock.js b/jest/mocks/empty.js similarity index 56% rename from __mocks__/fileMock.js rename to jest/mocks/empty.js index 42639a225d..960c3dc0b9 100644 --- a/__mocks__/fileMock.js +++ b/jest/mocks/empty.js @@ -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 diff --git a/test/enzyme.js b/test/enzyme.js deleted file mode 100644 index 126b9127f2..0000000000 --- a/test/enzyme.js +++ /dev/null @@ -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;