fix test script

This commit is contained in:
0xtsukino
2023-11-14 09:51:48 +03:00
parent 13c673dc0c
commit 1295207681
3 changed files with 3 additions and 13 deletions

View File

@@ -16,7 +16,7 @@
"build:wasm": "wasm-pack build --target web wasm/prover",
"build:test": "webpack --config webpack.test.config.js",
"watch:test": "webpack --config webpack.test.config.js --watch",
"serve:test": "serve ./test-build -l 3000",
"serve:test": "serve --config ../serve.json ./test-build -l 3000",
"test": "concurrently npm:watch:test npm:serve:test",
"lint:eslint": "eslint . --fix",
"lint:tsc": "tsc --noEmit",

View File

@@ -1,6 +1,7 @@
import { prove, verify, NOTARY_SERVER_PUBKEY } from '../src';
(async function runTest() {
console.log('hi1')
const proof = await prove('https://swapi.dev/api/people/1', {
method: 'GET',
headers: {

View File

@@ -6,11 +6,6 @@ const { compilerOptions } = require('./tsconfig.json');
const isProd = process.env.NODE_ENV === 'production';
const devServerEntries = [
// 'webpack-dev-server/client?http://localhost:8080',
// 'webpack/hot/only-dev-server',
];
const envPlugin = new webpack.EnvironmentPlugin({
NODE_ENV: 'development',
});
@@ -45,7 +40,7 @@ module.exports = [
},
output: {
path: __dirname + '/test-build',
publicPath: isProd ? '/' : 'http://localhost:8080/',
publicPath: '/',
filename: `[name].js`,
},
devtool: 'source-map',
@@ -93,12 +88,6 @@ module.exports = [
stats: 'minimal',
devServer: {
historyApiFallback: true,
proxy: {
'/ns': {
target: `https://127.0.0.1:7074`,
secure: true,
},
},
},
// optimization: {
// runtimeChunk: 'single'