-
Notifications
You must be signed in to change notification settings - Fork 365
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
test(command-dev): replace cra test with eleventy test #2171
Conversation
@@ -1,4 +1,4 @@ | |||
/force.html /test.html 200! | |||
/something /otherthing.html | |||
/force /test 200! |
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.
eleventy
puts files in their own directories (e.g. test.html
is copied to test/index.html
)
📊 Benchmark resultsComparing with d74d294
|
t.true(response.includes('Web site created using create-react-app')) | ||
}) | ||
|
||
test('static/js/bundle.js', async (t) => { |
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.
This is removed as it is no longer required
|
||
const BUNDLE_MIN_LENGTH = 1e2 | ||
|
||
test('static file under public/', async (t) => { |
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.
Also removed as it is no longer required
t.is(body, 'Redirecting to /otherthing.html') | ||
}) | ||
|
||
test('normal rewrite', async (t) => { |
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.
This one is skipped per #1242
}) | ||
|
||
test('force rewrite', async (t) => { |
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.
This changed from getting force.html
to force
}) | ||
|
||
test('robots.txt', async (t) => { |
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.
Removed as no longer required
760bb00
to
e17985e
Compare
- Summary
Replaces the
create-react-app
site in our tests with aneleventy
site.In order to run the
cra
test wenpm ci
the site's dependencies. This takes about 25 seconds on my machine.npm ci
on theeleventy
site takes about 4 seconds.- Test plan
See test.
I had to
skip
one test due to #1242 which I'll fix in a separate PR.Screenshots on the Windows CI machine:
- A picture of a cute animal (not mandatory but encouraged)