This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Auth\SessionGuard; | |
// ... | |
/** | |
* Resets AuthManager state by logging-out the user from all auth guards. | |
* This is used between unit tests to wipe cached auth state. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Auth; | |
use Illuminate\Foundation\Auth\ThrottlesLogins; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
use Tests\TestCase; | |
class LoginTest extends TestCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
testRegex: 'resources/js/.*.spec.js$', | |
moduleFileExtensions: [ | |
'js', | |
'json', | |
'vue', | |
], | |
transform: { | |
'^.+\\.vue$': 'vue-jest', | |
'^.+\\.js$': 'babel-jest', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"test": { | |
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]] | |
} | |
} | |
} |
OlderNewer