Skip to content

Commit bf72e10

Browse files
PauloGoncalvesBHPaulo Gonçalves
authored and
Paulo Gonçalves
committed
fix: adjust the path from all tests
1 parent 7c625f3 commit bf72e10

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ COPY tests/ ./
4545

4646
COPY --from=build-image /dependencies/node_modules/ ./node_modules
4747

48-
ENTRYPOINT ["/usr/local/bin/npx", "aws-lambda-ric@1.1.0"]
48+
ENTRYPOINT ["node_modules/.bin/aws-lambda-ric"]
4949
CMD ["handler.runTest"]

serverless-runner/helpers/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function getAllTestFilesByTestPattern({ testPattern }) {
2020
.sync(testPattern, {
2121
cwd: "../tests"
2222
})
23-
.map(file => `/function/${file}`)
23+
.map(file => `/app/${file}`)
2424
return {
2525
files,
2626
numTotalFiles: files.length,

serverless-runner/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ const utils = require('./helpers/utils')
44

55
async function runPlaywrightTestOnServerless() {
66
try {
7+
const testPattern = 'E2E/*.test.js'
78
const { files, numTotalFiles } = utils.getAllTestFilesByTestPattern({
8-
testPattern: 'E2E/*.test.js'
9+
testPattern
910
})
1011

1112
if (numTotalFiles === 0) {

0 commit comments

Comments
 (0)