Skip to content

Commit cd88a46

Browse files
committed
cleanup
1 parent 72e700f commit cd88a46

File tree

9 files changed

+8
-9
lines changed

9 files changed

+8
-9
lines changed

WebExample/__tests__/input.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {test, expect} from '@playwright/test';
2-
import * as TEST_CONST from '../../testConstants';
2+
import * as TEST_CONST from './testConstants';
33
import {checkCursorPosition, setupInput} from './utils';
44

55
test.beforeEach(async ({page}) => {

WebExample/__tests__/styles.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {test, expect} from '@playwright/test';
22
import type {Page} from '@playwright/test';
3-
import * as TEST_CONST from '../../testConstants';
3+
import * as TEST_CONST from './testConstants';
44
import {setupInput, getElementStyle} from './utils';
55

66
const testMarkdownContentStyle = async ({testContent, style, page}: {testContent: string; style: string; page: Page}) => {
File renamed without changes.

WebExample/__tests__/textManipulation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {test, expect} from '@playwright/test';
22
import type {Locator, Page} from '@playwright/test';
3-
import * as TEST_CONST from '../../testConstants';
3+
import * as TEST_CONST from './testConstants';
44
import {checkCursorPosition, setupInput, getElementStyle, pressCmd} from './utils';
55

66
const pasteContent = async ({text, page, inputLocator}: {text: string; page: Page; inputLocator: Locator}) => {

WebExample/__tests__/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type {Locator, Page} from '@playwright/test';
2-
import * as TEST_CONST from '../../testConstants';
2+
import * as TEST_CONST from './testConstants';
33

44
const setupInput = async (page: Page, action?: 'clear' | 'reset') => {
55
const inputLocator = await page.locator(`div#${TEST_CONST.INPUT_ID}`);

WebExample/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {defineConfig, devices} from '@playwright/test';
2-
import * as TEST_CONST from '../testConstants';
2+
import * as TEST_CONST from './__tests__/testConstants';
33

44
export default defineConfig({
55
testDir: './__tests__',

WebExample/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"compilerOptions": {
44
"strict": true
55
},
6-
"include": ["App.tsx", "**/*.ts", "../testConstants.ts"],
6+
"include": ["App.tsx", "**/*.ts", "__tests__/testConstants.ts"],
77
"exclude": ["node_modules"]
88
}

example/src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {Button, Platform, StyleSheet, Text, View} from 'react-native';
44

55
import {MarkdownTextInput} from '@expensify/react-native-live-markdown';
66
import type {TextInput} from 'react-native';
7-
import * as TEST_CONST from '../../testConstants';
7+
import * as TEST_CONST from '../../WebExample/__tests__/testConstants';
88

99
function isWeb() {
1010
return Platform.OS === 'web';
@@ -150,7 +150,6 @@ export default function App() {
150150
testID="clear"
151151
title="Clear"
152152
onPress={() => {
153-
console.log('TEST');
154153
setValue('');
155154
}}
156155
/>

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"verbatimModuleSyntax": true,
2727
"typeRoots": ["node_modules/@types"]
2828
},
29-
"include": ["src/**/*", "types/global.d.ts", "testConstants.ts"],
29+
"include": ["src/**/*", "types/global.d.ts"],
3030
"exclude": ["**/node_modules/**/*", "parser/**/*", "**/lib/**/*", "example/src/**/*", "WebExample/**/*"]
3131
}

0 commit comments

Comments
 (0)