graphdb-workbench-tests 3.2.0-TR1 → 3.2.0-cypress-config

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cypress.config.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { defineConfig } from 'cypress';
2
2
  import setupPlugins from './plugins/index.js';
3
+ import webpackPreprocessor from '@cypress/webpack-preprocessor';
3
4
 
4
5
  export default defineConfig({
5
6
  projectId: 'v35btb',
@@ -21,6 +22,49 @@ export default defineConfig({
21
22
  // We've imported your old cypress plugins here.
22
23
  // You may want to clean this up later by importing these.
23
24
  setupNodeEvents(on, config) {
25
+ on('file:preprocessor', webpackPreprocessor({
26
+ webpackOptions: {
27
+ resolve: {
28
+ extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
29
+ modules: ['node_modules', '.'],
30
+ fullySpecified: false,
31
+ alias: {
32
+ path: 'path-browserify'
33
+ },
34
+ fallback: {
35
+ // Provide empty mocks for Node.js core modules
36
+ path: false,
37
+ fs: false,
38
+ os: false,
39
+ crypto: false,
40
+ util: false,
41
+ buffer: false,
42
+ stream: false
43
+ }
44
+ },
45
+ module: {
46
+ rules: [
47
+ {
48
+ test: /\.jsx?$/,
49
+ exclude: /node_modules/,
50
+ use: {
51
+ loader: 'babel-loader',
52
+ options: {
53
+ presets: ['@babel/preset-env']
54
+ }
55
+ }
56
+ },
57
+ {
58
+ test: /\.js$/,
59
+ resolve: {
60
+ fullySpecified: false
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ target: 'web',
66
+ }
67
+ }));
24
68
  return setupPlugins(on, config);
25
69
  },
26
70
  baseUrl: 'http://localhost:9000',