This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-toolkit-docs] Update terra-functional-testing upgrade guide (#648
) * Added additional notes to the terra-functional-testing upgrade guide. * Move express-server CLI command from terra-open-source-scripts to terra-functional-testing to eliminate the need to depend on terra-open-source-scripts to use express-server. * This should not be committed. * revert documentation.
- Loading branch information
Showing
12 changed files
with
19 additions
and
186 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions
5
...press-server/expressServerHandler.test.js → ...press-server/expressServerHandler.test.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
const mockCreateApp = jest.fn(); | ||
const mockStart = jest.fn(); | ||
jest.mock('../../../../src/terra-cli/express-server/ExpressServer', () => jest.fn().mockImplementation(() => ({ | ||
jest.mock('../../../../src/express-server', () => jest.fn().mockImplementation(() => ({ | ||
createApp: mockCreateApp, | ||
start: mockStart, | ||
}))); | ||
|
||
const expressHandler = require('../../../../src/terra-cli/express-server/expressServerHandler'); | ||
const ExpressServer = require('../../../../src/terra-cli/express-server/ExpressServer'); | ||
const ExpressServer = require('../../../../src/express-server'); | ||
|
||
describe('expressHandler', () => { | ||
it('takes in options and starts the express server', async () => { | ||
await expressHandler({ host: 'host', port: 'port', site: 'site' }); | ||
|
||
expect(ExpressServer).toHaveBeenCalledWith({ host: 'host', port: 'port', site: 'site' }); | ||
expect(mockCreateApp).toHaveBeenCalled(); | ||
expect(mockStart).toHaveBeenCalled(); | ||
}); | ||
}); |
File renamed without changes.
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
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
84 changes: 0 additions & 84 deletions
84
packages/terra-open-source-scripts/src/terra-cli/express-server/ExpressServer.js
This file was deleted.
Oops, something went wrong.
95 changes: 0 additions & 95 deletions
95
packages/terra-open-source-scripts/tests/jest/terra-cli/express-server/ExpressServer.test.js
This file was deleted.
Oops, something went wrong.
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
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