Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

chore: add TS support and remove hardcoded values from visual tests config #817

Merged
merged 12 commits into from
Feb 1, 2019

Conversation

kuzhelov
Copy link
Contributor

@kuzhelov kuzhelov commented Jan 31, 2019

This PR introduces ability to consume TS modules in Screener configuration file.

This move allows to consume configuration parameters from config module, as well as to remove hardcoded class selectors from specs of interactive tests.

@kuzhelov kuzhelov changed the title feat(test): add TS support and remove hardcoded values from screener tests feat(test): add TS support and remove hardcoded values from visual tests Jan 31, 2019
@kuzhelov kuzhelov changed the title feat(test): add TS support and remove hardcoded values from visual tests feat(test): add TS support and remove hardcoded values from visual tests config Jan 31, 2019
@kuzhelov kuzhelov changed the title feat(test): add TS support and remove hardcoded values from visual tests config chore: add TS support and remove hardcoded values from visual tests config Jan 31, 2019
@DustyTheBot
Copy link
Collaborator

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS

@@ -0,0 +1,13 @@
import { Dropdown, Button, List } from '../../../../../../src'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { Dropdown, Button, List } from '../../../../../../src'
import { Dropdown, Button, List } from '@stardust-ui/react'

Can we use just this?

If it requires tsconfig, this should work:

require("ts-node").register({
  project: "build/tsconfig.common.json",
});

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me check..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately, this doesn't help - but, actually, I would also expect that it should. Will take another look tomorrow, thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

taking this as a general problem (import expressions like this one could be met quite often in the code), will clean up this stuff in the dedicated PR. Currently wasn't able to come up with resolution, but will spend additional time today

@kuzhelov kuzhelov merged commit 8c89e10 into master Feb 1, 2019
@layershifter layershifter deleted the feat/add-ts-support-to-screener-interaction-tests branch February 1, 2019 10:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants