mirror of
https://github.com/tlsnotary/tlsn-js.git
synced 2026-01-08 20:18:01 -05:00
fix test script
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user