-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export external/mds #472
base: master
Are you sure you want to change the base?
Export external/mds #472
Conversation
'import/extensions': ['error', 'always', { | ||
ignorePackages: true, | ||
}], | ||
'import/extensions': 'off', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might still want this. One of the common "slowness" of webpack is resolving file paths to actual files. If it has to guess which extension it is, it slows it down a bit at a time.
|
||
it('"serves" on http://localhost', async () => { | ||
const body = await (await fetch('http://localhost/api/v1/hello')).text(); | ||
|
||
expect(body).toEqual('Hello from MSW!'); | ||
}); | ||
|
||
it('errors on unhandled requests', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this failing? I would assume we want this behavior.
@@ -1,5 +1,5 @@ | |||
/* Downloaded XML file from https://www.currency-iso.org/en/home/tables/table-a1.html and converted to javascript */ | |||
export default { | |||
const currencies = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a specific reason for this change? I'm curious why this was necessary.
expect(await findSelectedOption('test label', 'Option 7')).toBeInTheDocument(); | ||
expect(await findSelectedOption('test label', 'USD')).toBeInTheDocument(); | ||
expect(await findSelectedOption('test label', 'Option 9')).toBeInTheDocument(); | ||
expect(await findSelectedOption('Foo')).toBeInTheDocument(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT, findSelectedOption
takes 2 arguments: findSelectedOption(fieldLabel, optionLabel)
@@ -73,7 +71,7 @@ describe('<MultiAutocompleter>', () => { | |||
|
|||
await openOptions('test label'); | |||
|
|||
expect(await findAvailableOption('test label', 'Test Option')).toBeInTheDocument(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT, findAvailableOption(fieldLabel, optionLabel)
.
@bennapp Do we need this still? |
Motivation
This was ran from the rake mds:export helper in bigmaven (that script converts file paths that will only work in bigmaven to relative file paths which are needed for standalone external mds). This also includes many lint fixes that were required from bigmaven.
We also had to make some small configuration changes like changing a linter to get the results of the export green.
Acceptance Criteria
PR upkeep checklist