summaryrefslogtreecommitdiff
path: root/e2e
diff options
context:
space:
mode:
authorKirill Rogovoy <[email protected]>2021-07-20 21:24:52 +0300
committerKirill Rogovoy <[email protected]>2021-07-20 21:24:52 +0300
commit5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb (patch)
tree273dfc086444533d86d580961c92ba8d14781a67 /e2e
parentf0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (diff)
WIP
Diffstat (limited to 'e2e')
-rw-r--r--e2e/README.md66
-rw-r--r--e2e/config.json4
-rw-r--r--e2e/firstTest.spec.js19
-rw-r--r--e2e/init.js19
-rw-r--r--e2e/reload.js2
5 files changed, 0 insertions, 110 deletions
diff --git a/e2e/README.md b/e2e/README.md
deleted file mode 100644
index 83c7ec7..0000000
--- a/e2e/README.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# Detox End-To-End Testing
-
-## Setup
-
-To get your Detox tests up and running, you'll need to install some global dependencies:
-
-1. Install the latest version of [Homebrew](https://brew.sh/)
-2. Make sure you have Node installed (at least 8.6.0). If you don't:
-
-If you use NVM:
-
-```bash
-nvm install node
-```
-
-Or if you'd prefer to install directly from Homebrew
-
-```bash
-brew update && brew install node
-```
-
-3. Install `applesimutils, which will allow Detox to communicate with the iOS simulator:
-
-```bash
-brew tap wix/brew && brew install applesimutils
-```
-
-4. Install the Detox CLI
-
-```bash
- yarn global add detox-cli
-```
-
-## Adding tests
-
-We've gotten you started with `./e2e/firstTest.spec.js`, which tests that the two main example screens render properly.
-
-Note that in order to pick up elements by ID, we've added the `testID` prop to the component.
-
-## Running tests
-
-1. Start the packager
-
-```
-yarn start
-```
-
-_(Expo-only note: for testing [production code](https://docs.expo.io/workflow/development-mode/#production-mode), start the packager with `yarn start --no-dev --minify`)_
-
-2. Run the app
-
-In a separate terminal window from the packager:
-
-```
-yarn build:e2e
-```
-
-_(Expo-only note: this is unnecessary for Expo apps)_
-
-3. Run the tests
-
-```
-yarn test:e2e
-```
-
-For more information, make sure to check out the official [Detox Docs](https://github.com/wix/Detox/blob/master/docs/README.md)
diff --git a/e2e/config.json b/e2e/config.json
deleted file mode 100644
index 1f6588a..0000000
--- a/e2e/config.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "setupFilesAfterEnv": ["./init.js"],
- "testEnvironment": "node"
-}
diff --git a/e2e/firstTest.spec.js b/e2e/firstTest.spec.js
deleted file mode 100644
index 91729fb..0000000
--- a/e2e/firstTest.spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// For more info on how to write Detox tests, see the official docs:
-// https://github.com/wix/Detox/blob/master/docs/README.md
-
-const { reloadApp } = require('./reload')
-
-describe('Example', () => {
- beforeEach(async () => {
- await reloadApp()
- })
-
- it('should have welcome screen', async () => {
- await expect(element(by.id('WelcomeScreen'))).toBeVisible()
- })
-
- it('should go to next screen after tap', async () => {
- await element(by.id('next-screen-button')).tap()
- await expect(element(by.id('DemoScreen'))).toBeVisible()
- })
-})
diff --git a/e2e/init.js b/e2e/init.js
deleted file mode 100644
index 071de3e..0000000
--- a/e2e/init.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const detox = require('detox')
-const config = require('../package.json').detox
-const adapter = require('detox/runners/jest/adapter')
-
-jest.setTimeout(120000)
-jasmine.getEnv().addReporter(adapter)
-
-beforeAll(async () => {
- await detox.init(config)
-})
-
-beforeEach(async () => {
- await adapter.beforeEach()
-})
-
-afterAll(async () => {
- await adapter.afterAll()
- await detox.cleanup()
-})
diff --git a/e2e/reload.js b/e2e/reload.js
deleted file mode 100644
index c7da760..0000000
--- a/e2e/reload.js
+++ /dev/null
@@ -1,2 +0,0 @@
-const { reloadApp } = require('detox-expo-helpers')
-module.exports = { reloadApp }