Skip to content

Commit

Permalink
test(percy): Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Aug 11, 2023
1 parent 7755e8f commit 7af0cc8
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions percy/percy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import puppeteer from 'puppeteer'

const percySnapshot = require('@percy/puppeteer')

// const OTP_RR_TEST_CONFIG_PATH = '../percy/har-mock-config.yml'
const { OTP_RR_UI_MODE } = process.env
// const OTP_RR_TEST_JS_CONFIG_PATH = OTP_RR_PERCY_CALL_TAKER
// ? './percy/har-mock-config-call-taker.js'
// : './percy/har-mock-config.js'

const MOCK_SERVER_PORT = 5486

Expand Down Expand Up @@ -43,24 +39,7 @@ async function loadPath(otpPath) {

beforeAll(async () => {
try {
// Build OTP-RR main.js using new config file
/*
await execa('env', [
`YAML_CONFIG=${
process.env.PERCY_OTP_CONFIG_OVERRIDE || OTP_RR_TEST_CONFIG_PATH
}`,
`JS_CONFIG=${OTP_RR_TEST_JS_CONFIG_PATH}`,
'yarn',
'build'
])
console.log('Built OTP-RR')
*/
} catch (error) {
console.log(error)
}
console.log('Built OTP-RR')

try {
// Launch OTP-RR web server
execa('yarn', ['percy-serve', 'dist', '-p', MOCK_SERVER_PORT], {
signal: serveAbortController.signal
}).stdout.pipe(process.stdout)
Expand Down

0 comments on commit 7af0cc8

Please sign in to comment.