diff --git a/lighthouse-core/test/test-utils.js b/lighthouse-core/test/test-utils.js index 4fac8c6134be..d4c7f94f0e57 100644 --- a/lighthouse-core/test/test-utils.js +++ b/lighthouse-core/test/test-utils.js @@ -57,7 +57,7 @@ function getProtoRoundTrip() { let itIfProtoExists; try { sampleResultsRoundtripStr = - fs.readFileSync(__dirname + '/../../dist/proto/sample_v2_round_trip.json', 'utf-8'); + fs.readFileSync(__dirname + '/../../.tmp/sample_v2_round_trip.json', 'utf-8'); describeIfProtoExists = describe; itIfProtoExists = it; } catch (err) { diff --git a/package.json b/package.json index cbb7f5993ce5..9a68dc4da9a1 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "ultradumbBenchmark": "./lighthouse-core/scripts/benchmark.js", "minify-latest-run": "./lighthouse-core/scripts/lantern/minify-trace.js ./latest-run/defaultPass.trace.json ./latest-run/defaultPass.trace.min.json && ./lighthouse-core/scripts/lantern/minify-devtoolslog.js ./latest-run/defaultPass.devtoolslog.json ./latest-run/defaultPass.devtoolslog.min.json", "compile-proto": "protoc --python_out=./ ./proto/lighthouse-result.proto && mv ./proto/*_pb2.py ./proto/scripts || (echo \"❌ Install protobuf ≥ 3.7.1 to compile the proto file.\" && false)", - "build-proto-roundtrip": "mkdir -p dist/proto && cd proto/scripts && PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 python json_roundtrip_via_proto.py", + "build-proto-roundtrip": "mkdir -p ./tmp && cd proto/scripts && PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 python json_roundtrip_via_proto.py", "static-server": "node lighthouse-cli/test/fixtures/static-server.js" }, "devDependencies": { diff --git a/proto/scripts/json_roundtrip_via_proto.py b/proto/scripts/json_roundtrip_via_proto.py index dab60ba6b39e..4527be08aec3 100644 --- a/proto/scripts/json_roundtrip_via_proto.py +++ b/proto/scripts/json_roundtrip_via_proto.py @@ -10,7 +10,7 @@ path_sample_preprocessed = path_dir + '/sample_v2_processed.json' path_sample = path_dir + '/../../lighthouse-core/test/results/sample_v2.json' -path_round_trip = path_dir + '/../../dist/proto/sample_v2_round_trip.json' +path_round_trip = path_dir + '/../../.tmp/sample_v2_round_trip.json' def clean(): try: