Assuming that the test file is standard, are you using versioning? You are getting a page error because of assets not found in the manifest file. Also, make sure you upgrade to the latest Mix.
Mar 6, 2017
10
Level 17
Laravel Mix is breaking a Feature test?
So I have a new Laravel 5.4 install on Valet and I'm trying to start to write tests.
The test is very straight forward and the view is working great in the browser and the stock Laravel Auth routes are working great. I'm at a loss as to why this is failing when I run phpunit
public function testGetLoginUrl()
{
$response = $this->get('/login');
$response->assertStatus(200);
}
The test fails here:
1) Tests\Feature\AuthTest::testGetLoginUrl
Expected status code 200 but received 500.
Failed asserting that false is true.
With the following in the the log file:
[2017-03-06 15:52:52] testing.ERROR: Exception: The Mix manifest does not exist. in /Users/Colin/Sites/mynewwebsite/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:579
Stack trace:
#0 /Users/Colin/Sites/mynewwebsite/storage/framework/views/88246e21a9b3de4c7945c5bb4e0e978721851d91.php(16): mix('/css/app.css')
...
...
Please or to participate in this conversation.